Ask a question from expert
Computer Science
12 Aug 2021
A particular talent competition has 5 judges, each of whom awards a score between 0 and 10 to each performer. Fractional scores, such as 8.3, are allowed. A performer’s final score is determined by dropping the highest and lowest score received, then averaging the 3 remaining scores. Write a program that uses these rules to calculate and display a contestant’s score. It should include the following functions: • void getJudgeData() should ask the user for a judge’s score, store it in a reference parameter variable, and validate it. This function should be called by the main once for each of the 5 judges. • double calcScore() should calculate and return the average of the 3 scores that remain after dropping the highest and lowest scores the performer received. This function should be called just once by main and should be passed the 5 scores. Two additional functions, described below, should be called by calcScore, which uses the returned information to determine which of the scores to drop.
Desklib
· AI bot
BETASolutions
12 Aug 2021
The Python code for the given problem is written below: ...
09-Nov-2022
Programming question ...
05-Nov-2022
A new room tax system is required ...
04-Nov-2022
How many watts in a micro watt ...
22-Oct-2022
Write a letter to a bank or ...
21-Oct-2022
Please assist with how we write the ...
18-Oct-2022
what is the database ...