Starting from:

$10

Program that computes a diver’s score Solved

A program that computes a diver’s score based on the degree of difficulty and 5 judge’s scores. In diving, the low and the high score are dropped. The middle three scores are added and then multiplied by the degree of difficulty. Unfortunately, this program doesn’t work. There are three logical errors in it.

Correct Output (Inputs in Bold)

Please enter the degree of difficulty: 2.3

Please enter the score from Judge #1: 6.0
Please enter the score from Judge #2: 5.5
Please enter the score from Judge #3: 6.5
Please enter the score from Judge #4: 7.0
Please enter the score from Judge #5: 6.0
The score for the dive is: 42.55

More products