DIVE Scoring Program
Your mission: The state diving commission wants to computerize the scoring at its diving competitions. You’ve been hired to write a program to automate the scoring of dives. Following are the requirements for the program.
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.
Sample output:
Diver’s name: Sue Jones Diver’s city: DallasDive degree of difficulty: 1.9Invalid degree of difficulty – Please reenter (Valid Range: 1 – 1.67)Dive degree of difficulty: 2Invalid degree of difficulty – Please reenter (Valid Range: 1 – 1.67)Dive degree of difficulty: 1.2
Judge
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more