Question: Star Search ( Using C + + ) Make sure that you look at the comments on the Drop Lowest Score program before starting this
Star Search Using C
Make sure that you look at the comments on the Drop Lowest Score program before starting this program. This program is almost identical. Don't make the same mistakes!
In Functions, there can only be one return statement. You can not use an exit or break function.
A particular talent competition has judges, each of whom award a score between and to each performance. Fractional scores, such as are allowed. A performers final score is determined by dropping the highest and the lowest score received, then averaging the remaining scores. Write a program that uses this method to calculate a contestants score. It should include the following functions:
void getJudgeDatashould ask the user for a judges score, store it in areference parameter variable, and validate it This function should be called by main once for each of the judges. Use a local static variable for which score is to be entered.
void calcScoreshould calculate and display the average of the scores that remain after dropping the highest and lowest scores the performer received. Include decimal places on the result. This function should be called just once by main and should be passed the seven scores. This is passed data by value.
The last two functions, described below, should be called by calcScore, which uses the returned information to determine which of the scores to drop. This is passed data by value.
double findLowestshould find and return the lowest of the scores passed to it
double findHighestshould find and return the highest of the scores passed to it
Sample Run:
Enter score :
Enter score :
Enter score :
Enter score :
Enter score :
Enter score :
Enter score :
The average after dropping the highest and the lowest scores:
Do not use the min or max C functions.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
