subject

Write a complete c++ program that takes the judges’ scores for a gymnastic event and finds each contestant’s score. it should satisfy all the following specifications: it first reads in an integer n that gives the number of judges. it then reads in a contestant number followed by n integers which are the scores given the contestant by the n judges. the scores should be read into an array, then the program calls a function called findaveragescore that takes n and the array of judges’ scores as arguments. the function should find and drop the highest score and the lowest score, and then find and return the average of the remaining n-2 scores. the main should then print the contestant number and the average score s/he receives for the event to the screen. it will continue to do this (read in the contestant number, then the n integers, then print the contestant number and the calculated score on a new line) until a negative value is entered for the contestant number. the program will then print the contestant number who scored the highest. (you may assume no ties will occur.) all input will be from the keyboard and you may also assume that n will never be greater than 10 and never less than 3. you may format the output in any way as long as it is readable and correct, and you may assume all inputs are correct. sample output screen for a session (bold numbers are printed by the program, normal numbers are typed in by the user.)number of judges: 534 7 5 3 7 6contestant 34 628 8 5 8 10 7contestant 28 7.73 5 5 3 4 4contestant 3 4.-1contestant 28 had the highest score.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:30
Kyle, a receptionist for a building supply company, recently won an award for saving his company money on their phone system. after being presented with kyle's research, the company changed the way in which it made long-distance phone calls and cut their expenses in this area by 75 percent. the new system the kyle's company most likely adopted was wired communications switching stations voip hdtv
Answers: 3
question
Computers and Technology, 23.06.2019 13:00
In excel - calculate the actual increase/decrease from first quarter to the second quarter then subtract subtract first quarter value from second quarter total then divide result by first quarter value
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the
Answers: 1
question
Computers and Technology, 24.06.2019 03:00
With editing, word automatically displays a paste options button near the pasted or moved text. a. cut-and-paste b. drag-and-drop c. inline d. copy-and-carry
Answers: 1
You know the right answer?
Write a complete c++ program that takes the judges’ scores for a gymnastic event and finds each cont...
Questions
question
Physics, 08.12.2020 04:00
question
Mathematics, 08.12.2020 04:00
question
Biology, 08.12.2020 04:10
question
History, 08.12.2020 04:10
Questions on the website: 13722362