### JudgeData project.

Hello, I am posting this program of min because I want to se if qnybody can give me some help on how my code should be put together. I am trying to chunk the pieces together by making one piece of the program at a time, but still I cant even get the input right. And here are the instructions for my code. I was also told that arrays could not be used for this project, since arrays is next chapter. Thanx in advance for any help that I get from any of you. :)
A particular talent competition has five 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 three remaining scores. Write a program that uses this approach to calculate 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 formal parameter variable, and validate it. If a judge’s score entered is lower than 0 or higher than 10, ask the judge to enter it again until he or she enters the valid score (using priming read and the pre-test loop DO WHILE for the input validations). This function should be called by the main( ) once for each of the five judges.

 void calcScore( ) should calculate and display the average of the three scores that remain after dropping the highest and lowest scores the performer received. This function should be called just once by the main( ) and should be passed the five scores.
The last two functions, described below, should be called by the calcScore( ), which uses the returned information to determine which of the score to drop.
 int findLowest( ) should find and return the lowest of the five scores passed to it.
 int findHighest( ) should find and return the highest of the five scores passed to it.
Here is what I got so far...
 ``123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102`` ``````#include #include using namespace std; void getJudgeData(double &, double &, double &, double &,double &); void getCalcScore(double &, double &, double &, double &,double &); int findLowest(); int findHighest(); double lowNum(); double highNum(); int main() { double score1, score2, score3, score4, score5; double getJudgeData1,getJudgeData2,getJudgeData3,getJudgeData4,getJudgeData5; cout<<"\nHello! this program will calculate the contestants score.\n"; cout<<"Now, please enter your score: "; getJudgeData1(score1); getJudgeData2(score2); getJudgeData3(score3); getJudgeData4(score4); getJudgeData5(score5); cout<>Escore1; while (Escore1<0 || Escore1 >10) { cout<<"Sorry buddy, no scores lower than or equal to 0\n"; cout<<"Or scores higher or equal to 10.\n"; cout<<"Please re-enter a score between 0 and 10\n : "; cin>>Escore1; } return Escore1; } double getJudgeData2(double &Escore2) { cout<<"Judge 2, please enter your score!: "; cin>>Escore2; while (Escore2<0 || Escore2 >10) { cout<<"Sorry buddy, no scores lower than or equal to 0\n"; cout<<"Or scores higher or equal to 10.\n"; cout<<"Please re-enter a score between 0 and 10\n : "; cin>>Escore2; } return Escore2; } double getJudgeData3(double &Escore3) { cout<<"Judge 3, please enter your score!: "; cin>>Escore3; while (Escore3<0 || Escore3 >10) { cout<<"Sorry buddy, no scores lower than or equal to 0\n"; cout<<"Or scores higher or equal to 10.\n"; cout<<"Please re-enter a score between 0 and 10\n : "; cin>>score3; } return Escore3; } double getJudgeData4(double &Escore4) { cout<<"Judge 4, please enter your score!: "; cin>>Escore4; while (Escore4<0 || Escore4 >10) { cout<<"Sorry buddy, no scores lower than or equal to 0\n"; cout<<"Or scores higher or equal to 10.\n"; cout<<"Please re-enter a score between 0 and 10\n : "; cin>>score4; } return Escore4; } double getJudgeData5(double &Escore5) { cout<<"Judge 5, please enter your score!: "; cin>>Escore5; while (Escore5<0 || Escore5 >10) { cout<<"Sorry buddy, no scores lower than or equal to 0\n"; cout<<"Or scores higher or equal to 10.\n"; cout<<"Please re-enter a score between 0 and 10\n : "; cin>>Escore5; } return Escore5; }``````
Topic archived. No new replies allowed.