At the olympic games many of the events are judged in the fo
At the olympic games many of the events are judged in the following manner. An individual athletes performance is judged by a variabe nus smber of judges (up to 10.) Each of the athletes recieve a grade from 0.00 to 10.0 from each of the judges. The performance score of the athletes is obtained by rejecting both the lowest and the highest score and taking the average of the remaining scores.
Your program is to compute the average score for each athlete. it should print out the athlete ID followed by the average score for that athlete.
Data to be used:
ID judge score
2365 7 8.8 7.4 6.3 7.1 5.6 7.3 6.4
2345 6 8.9 8.9 4.5 4.5 6.7 9.2
4356 8 8.8 8.8 5.7 8.9 9.4 2.3 6.7 5.9
7865 5 7.8 5.3 2.3 6.9 9.9
2319 6 8.8 8.8 8.8 8.8 8.8 8.8
4508 7 8.9 9.4 2.3 5.6 3.4 9.9 9.9
I am supposed to do this WITHOUT using an array. I believe that these are too many variables to use with a function aswell. Im not sure how to get the various score inputs. TIA
Solution
#include