I am trying to work out the average of 15 gymnasts by taking away the maximum and minimum of their scores from their TOTAL scores and then dividing this by the number of judges (5). I keep getting the wrong output though and it seems that there is an error with numbers somewhere. I have attached the file where the data is being read from.
float CalculateGymnastScore (float JudgesScores, int Judges)
float Sum, Max, Min, FinalScore;
float GetMaxScore(float JudgesScores, int Judges)
float GetMinScore(float JudgesScores, int Judges)
***THANKS FOR YOUR HELP***