1. Engineering
  2. Computer Science
  3. using name space and main has to be on top...

Question: using name space and main has to be on top...

Question details

12. Star Search 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 performers final score is determined by dropping the highest and lowest score received, then aver- aging the three remaining scores. Write a program that uses this method to calculate contestants score. It should include the following functions void getJudgeData() should ask the user for a judges score, store it in a reference parameter variable, and validate it. This function should be called by 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 main and should be passed the five scores. The last two functions, described below, should be called by calcScore, which uses the returned information to determDe which of the scores to drop. · int find Lowest ( ) 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 Input Validation: Do not accept judge scores lower than O or higher than 10
Using name space and main has to be on top
I will give you an example of how i want it literally exactly the same using the same stuff details and everything but diff words and using float instead of int


Tools Analye Window Help each input is 9
lan Lab6-Micresoft Visual Studio Vew Project Build Incredibuild Debug Team Tools Test R Tools Analyze Window Help Debug 86 (Global Scope coat (くThe range of score is e to 10, please enter your score of Competition-<< coerro i <<-an- cin > scorel; get)udfedata(scorel):l/Function cal 2 31 32 cout<<h, range of score is to ie, Please enter your score of Competition-<< copernop cin scorež get)udf eOata(score2);//function call . cout ss The range of score is o to 18, please enter your score of Competition < COMPETITON 3 e get3udfebata(score)://Function call 3e << .Therenge of score iso to 1°, plere enter your score of Conpetition _ << COPE rrrow 4 << -,n., getJudf eDsta(score4)//Funcion call cout The range of score is to 1e, r please enter your score of Competition COMPETITON Sn radfeData(scores)เ//Function call cout < Resultin siescoretscerei, scorea, scores, scores, scores) 19
media%2F3b2%2F3b22a213-8466-4191-aca7-50
Edi Ve Projet Bld Incredibuild Debug Team Tools Test R Tools Analyze Window Help Debug (Global Scopel OFLnd the highest score of the Five scores double findighest(double nuni, double nun2, double num), double nun, double nus) double max 4 ind mber), devble sunbera, double numbers)
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution