Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Programmed in java The requirements are for you to write a program to quickly calculate gymnastics scores for an international competition. Six judges are judging

Programmed in java image text in transcribed
The requirements are for you to write a program to quickly calculate gymnastics scores for an international competition. Six judges are judging the competition, numbered 1 through 6 for anonymity. The program should have a loop that performs the following tasks: calls a method asking for the score from a single judge. The method should print the judge number and score and return the judges score adds the returned score to a total score. After the loop is done, your program should call a method that calculates and displays the average score. This means the your final program should contain at least three methods. The main method and the two additional methods described above. Scores are in the range 0 to 10 with one decimal places, such as 8. 5.The program should reject a score entered that is outside of the range. The average should be displayed with two decimal places. Here is a sample of the output: Score for Judge 1: 8.5 Score for Judge 2: 8.7 Score for Judge 3: 8.4 Score for Judge A: 9.1 Score for Judge 5: 8.9 Score for Judge 6: 9.0 The average score is: 8.77

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Next Generation Databases NoSQLand Big Data

Authors: Guy Harrison

1st Edition

1484213300, 978-1484213308

More Books

Students also viewed these Databases questions

Question

Q.No.1 Explain Large scale map ? Q.No.2 Explain small scale map ?

Answered: 1 week ago