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. Flowchart and write a program that uses this method to calculate a contestants score. It should include the following functions:
void getJudgeData(...)
should ask the users for a judge's score, store it in a reference variable, and validate it. This function should be called by main once for each of the five judges. Do not accept scores less than 0 or higher than 10.
void calcScore(...)
should calculate and display the average of 3 scores that remain after drooping the highest and the lowest scores the performer received. This function should be called by main just once, and should be passed the 5 scores.
int findLowest(.. )
should find and return the lowest of five scores passed to it. Called by calcScore.
int findHighest(.. )
should find and return the highest of five scores passed to it. Called by calcScore.