Question: Write a program that will ask the user for four judge's scores. A possible score could be 5.8 and must be between 1-10. A final

Write a program that will ask the user for four judge's scores. A possible score could be 5.8 and must be between 1-10. A final score for the performer is calculated by dropping the highest and lowest scores and then averaging the two remaining scores.

Your program will call an input function four times. This function will ask the user for a score and return it. The returned value will be placed in one of the four judges scores.

Your program will then call two additional functions, one to find and return the highest score and one to find and return the lowest score. Each of these functions will take in the four scores as arguments. You may not use an array and you may not use a loop. You must accomplish this using selection statements.

Next, your program will call a function to calculate the final score. This function will take in all four judges scores and the lowest, and highest. It will then mathematically calculate and return the final score.

Lastly, you will call a function that will display the four judges scores and the final score.

You must use function prototypes and functions must be defined after main().

Must be written in C programming, NOT C++.

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!