Question: C is the programming language. In a course exam, each test is graded by two graders. If the difference between the score submitted by the

C is the programming language.

C is the programming language. In a course exam, each test is

In a course exam, each test is graded by two graders. If the difference between the score submitted by the two graders is less than x, the final grade is the average. Otherwise, the test is reviewed by a third grader, as follows: 1. If the grade of the third reviewer is equal to the average of the first two grades, that is the final grade. 2. If the grade of the third reviewer is less than the minimum (e.g., min) of the first two grades, the final grade is that minimum. 3. Otherwise, the final grade is the average of the grade of the third reviewer and the grade of the first two closest to it. Write a program that: 1. Prompts the user for the two grades and the maximum accepted difference x. 2. If a third grade is necessary, it prompts the user for the third grade. 3. It displays the final grade. Sample Output Enter the grades by the two graders: 85 88 Enter the maximum difference between the two grades: 5 The final grade is 86.5 Sample Output Enter the grades by the two graders: 80 88 Enter the maximum difference between the two grades: 5 Enter the grade of the third grader: 84 The final grade is 84.0 Sample Output Enter the grades by the two graders: 80 88 Enter the maximum difference between the two grades: 5 Enter the grade of the third grader: 82 The final grade is 81.0

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!