[SOLVED] Program that computes a diver’s score

15.00 $

Programming resource
, Digital learning resource
Categories: ,
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)
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

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.