The state diving commission wants to computerize the


Question: The state diving commission wants to computerize the scoring at its diving competitions.

You need to write a program to automate the scoring of dives.

Requirements:

After each dive, the user will be prompted to enter the:

  • diver's name;
  • diver's city;
  • degree of difficulty (ranges from 1.00 to 1.67); and
  • scores from five judges (scores can range from 0 to 10).

If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered.

The program will then display the following information:

  • Diver's name
  • Diver's city
  • Dive final score: This is calculated by dropping the highest and lowest of the five judges' scores.

The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty.

The program will then prompt the user if she/he wants to process another dive. The user can type "Y" or "y" to continue, and "N" or "n" to quit.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: The state diving commission wants to computerize the
Reference No:- TGS0957022

Expected delivery within 24 Hours