Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Suppose that t g(t) = 12. Show that g(t) exists and equals 4. im

Answered: 1 week ago

Question

10. Describe the relationship between communication and power.

Answered: 1 week ago