Question: write the program above in C. Only C, thank you. 1. Write a program to calculate a student's grade based on three test scores, using

 write the program above in C. Only C, thank you. 1.

write the program above in C. Only C, thank you.

1. Write a program to calculate a student's grade based on three test scores, using the guidelines below: Write a function readScores and call it three times to read three test scores (between 0 and 100), using data type float for the scores. Call a function calculateGrade to determine the student's grade from the three test scores using the algorithm below. The function calculateGrade receives the three scores and returns the grade as a character Implement the algorithm using nested statements within a given range rather than merely simple if statements. The grade is not printed from this function. These are the guidelines: If the average score is 90% or more, the grade is A. If the average score is 70% or more and less than 90%, check the third score. If the third score is more than 90%, the grade is A; otherwise the grade is B If the average score is 50% or more and less than 70%, check the average of the second and third scores. If the average of the two is greater than 70%, the grade is C; otherwise the grade is D If the average score is less than 50% then the grade is F Call a function printResults to print the three test scores and the student's grade

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!