Computers and Technology

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 15:00, notsobright10
Marissa is a high school student who wants to be a hydroelectric production manager. she talks to her guidance counselor about her education path, and the counselor says that she needs to get an associate’s degree from a four-year college and will follow that with significant on-the-job training. what error did the counselor make while advising marissa? marissa will not have on-the-job training. marissa also needs a three-year apprenticeship. marissa only needs to attend a two-year college. marissa needs a bachelor’s degree.
Answers: 1
image
Computers and Technology, 23.06.2019 17:10, madams4450
Ac++an of of pi. in , pi is by : pi = 4 – 4/3 + 4/5 – 4/7 + 4/9 - 4/11 + 4/13 - 4/15 + 4/17 . ., to pi (9 ). , if 5 to pi, be as : pi = 4 - 4/3 + 4/5 - 4/7 + 4/9 = 4 – 1. + 0.8 - 0. + 0. = 3.. atoofbe to pi?
Answers: 2
image
Computers and Technology, 23.06.2019 22:20, Izzyfizzy
Read “suburban homes construction project” at the end of chapters 8 and 9 (in the textbook) and then develop a wbs (work breakdown structure) in microsoft excel or in microsoft word (using tables)
Answers: 1
image
Computers and Technology, 24.06.2019 05:30, MOONCHILDSUGA
If you combine two cells into one, what action are you performing? a.  adding a new row or column      b.  splitting the cells      c.  removing a new row or column      d.  merging the cells
Answers: 2
Do you know the correct answer?
Write a complete c++ program that takes the judges’ scores for a gymnastic event and finds each cont...

Questions in other subjects:

Konu
Mathematics, 16.09.2019 03:10