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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 23:00, jeffylovesgreenbeans
What computer network component allows data transfers from one computer to another through a telephone line?
Answers: 1
image
Computers and Technology, 23.06.2019 10:00, thezbell
What is estimated time of arrival (eta)? a device that measures the acceleration (the rate of change of velocity) of an item and is used to track truck speeds or taxi cab speeds a gps technology adventure game that posts the longitude and latitude location for an item on the internet for users to find a north/south measurement of position the time of day of an expected arrival at a certain destination and is typically used for navigation applications
Answers: 3
image
Computers and Technology, 23.06.2019 15:00, puppylove899
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a. an advanced knowledge of physics and math b. an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 1
image
Computers and Technology, 23.06.2019 16:00, keyonaemanieevans
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
You know the right answer?
Write a complete c++ program that takes the judges’ scores for a gymnastic event and finds each cont...

Questions in other subjects:

Konu
Biology, 26.04.2020 08:55
Konu
Biology, 26.04.2020 08:55
Konu
Mathematics, 26.04.2020 08:56