Your State Gymnastic Association presently scores its competitions with pencil and paper. They would like you to design and develop a Scoring Program in Java. The paper forms that they presently use have the following:
Gymnast’s Name and City
JudgeScore1 – Difficulty Score, Execution Score, Deductions
JudgeScore2 – Difficulty Score, Execution Score, Deductions
JudgeScore3 – Difficulty Score, Execution Score, Deductions
JudgeScore4 – Difficulty Score, Execution Score, Deductions
JudgeScore5 – Difficulty Score, Execution Score, Deductions

Each judge's score is computed as (difficulty score + execution score) - deductions
The difficulty score is from 0.1 to 7.5
The execution score is from 0.1 to 2.5
The deductions range is from 0.1 to 1.0

OverAllScore - The overall score is the individual judge scores totaled with the highest and lowest scores removed as they are often skewed entries. Total the three scores left, divide them by 3
Display the gymnast’s information and overall score.
Sample output from program:
Enter the gymnast’s name: Sue Jones
Enter the gymnast’s city: Dallas
Enter the difficulty score given by judge #1: 6
Enter the execution score given by judge #1: 2
Enter the deduction given by judge #1: .5
Judge 1 Score: 7.5
Enter the difficulty score given by judge #2: 7
Enter the execution score given by judge #2: 1.7
Enter the deduction given by judge #2: .3
Judge 2 Score: 8.4
Enter the difficulty score given by judge #3: 7
Enter the execution score given by judge #3: 1.6
Enter the deduction given by judge #3: .1
Judge 3 Score: 8.5
Enter the difficulty score given by judge #4: 7.2
Enter the execution score given by judge #4: 2.3
Enter the deduction given by judge #4: .1
Judge 4 Score: 9.4
Enter the difficulty score given by judge #5: 6.9
Enter the execution score given by judge #5: 1.8
Enter the deduction given by judge #5: .5
Judge 5 Score: 8.2

Gymnast: Sue Jones, City: Dallas
Overall score was 8.37
Do you want to process another gymnast(Y/N)?


• The program must include comments throughout.
• Validation loops must be used to validate that the scores are within the ranges given.
• Implement 2 methods of your choice in the program.
• You must use an array to store the score for each judge.
• You may need to use decisions to determine the lowest and highest scores.



Answer :

Other Questions