For this program I was looking to input five scores - take the lowest and highest scores and drop them
Take the remaining scores and avg them
I have written the program but I am having some issues when calculating the avg
When testing my program it works properly if the score from judge one is the lowest but it will now work properly for any other judges being the lowest.
Ex: I will enter 2,1,5,4,3 so it should drop the 1 & 5 and come out with the avg of 3 but the result is 2.6667
Hmm. What if there were 9 judges instead of 5? The code would start to get pretty crazy. You're much better off storing the scores in a vector. Once you do that, you can use a loop to find the highest, lowest and sum.