My code does the job for the most part, but I don't think the two functions that look for the highest and lowest score are the best approach. In theThe instructions tellstell me to use the intint as the return instead of doubledouble, but I can't tell how to take this approach.
A particular talent competition has 5 judges, each of whom awards a score between 0 and 10 to each performer. Fractional scores are allowed. The final score of a performer is determined bt dropping the highest and lowest score recieved, then averaging the 3 remaining scores. Should include the following functions:
- void getJudgeData() - should ask the user for the judge's score, store it in a reference parameter variable, and validate it. Called in main for each 5 judges 
- double calcScore() - should calculate and return the average of the 3 scores that remain after dropping the highest and lowest scores the prformer recieved. This function can only be called once by main and should be passed the 5 scores. - Two additional functions should be called by calcScore, which uses the returned info to determine which of the scores to drop. 
- int findLowest() - should find and return the lowest of the 5 scores passed to it.
- int findHighest() - should find and return the highest of the 5 scores passed to it.
A particular talent competition has 5 judges, each of whom awards a score between 0 and 10 to each performer. Fractional scores are allowed. The final score of a performer is determined by dropping the highest and lowest score received, then averaging the 3 remaining scores. Should include the following functions:
void getJudgeData()- should ask the user for the judge's score, store it in a reference parameter variable, and validate it. Called inmain()for each 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 can only be called once bymain()and should be passed the 5 scores.Two additional functions should be called by
calcScore(), which uses the returned info to determine which of the scores to drop:
int findLowest()- should find and return the lowest of the 5 scores passed to it.
int findHighest()- should find and return the highest of the 5 scores passed to it.