I am trying to get one of my homework problems to work, but something is going wrong with it. Would appreciate any advice you guys can give me on it. Thanks a bunch! It does all of the inputting part correctly, but the output is where the problem is.
In the sport of diving, seven judges award a score between 0 and 10, where each score may be a floating-point value. The highest and lowest scores are thrown out and the remaining scores are added together. The sum is then multiplied by the degree of difficulty for that dive. The degree of difficulty ranges from 1.2 to 3.8 points. The total is then multiplied by 0.6 to determine the diver’s score.
Write a computer program that inputs a degree of difficulty and seven judges’ scores, and outputs the overall score for that dive. The program should ensure that all inputs are within the allowable data ranges.
So I kind of re-did the whole thing cause I saw that it looked pretty wonky in the first place. There is something wrong with my calculations here as well, not sure what it is. Appreciate the help though.