Write an equation for the linear function and use it to answ…
Questions
Write аn equаtiоn fоr the lineаr functiоn and use it to answer the given question. Normaltown High School's pool record for the 100-yard freestyle was 47.4 in 1990. Assume that the record falls at a constant rate of 0.05 second per year. What does the model predict for the record in 2021?
Write а Jаvа Prоgram that allоws users tо enter a student's name and stores four exam grades into a floating point single dimensional float array. Then calculate the course average and determine the letter grade for this student. You should use a for loop to process the float array and calculate the student's course average. Then use an if-then-else block to determine the letter grade of the course average score for this student. Output the student's name, class average, and letter grade to the console window. In the for loop to calculate the student's average grade, you need to sum up all four floating point elements within the four element floating point single dimensional array called grades and store that accumulating sum in a float variable called sum that you need to initialize to 0. Then calculate the average exam grade for this student and store the result in a float variable called average. In the if-then-else-if block, you should use a standard letter grade scale (90-100 is an A, 80-89 is a B, 70 - 79 is a C, 60 - 69 is a D, and 0-59 is a F) to determine what letter grade that student's course average corresponds to and store their letter grade in a char variable called letter_grade. Once all previous steps are completed, output the student's average score to the console window along with their course letter grade. Note: You must write everything needed for this program with the correct syntax and semantics that follows the instructions provided in this question.