subject

Create a new Java application called "Scorer" (without the quotation marks) that declares a two-dimensional array of doubles (call it scores) with three rows and three columns and that uses methods and loops as follows. Use a method containing a nested while loop to get the nine (3 x 3) doubles from the user at the command line.
Use a method containing a nested for loop to compute the average of the doubles in each row.
Use a method to output these three row averages to the command line.
Note
The requirement is to use a two-dimensional array of type double called ‘scores’ with 3 rows and 3 columns.
Two methods are required.
The first method prompts the user to enter 9 values and then stores them in the scores array. Using a nested loop (for or while) is required. As long as you use a nested loop of some type, that’s fine.
The second method calculates the row averages. My approach was to store the row averages in a separate 3-element array (declared in main and passed into the method as a parameter along with the scores array). Use a nested for loop for processing the rows and calculating the row averages.
The third method takes the 3-element array containing the row averages and uses a for loop to display each of the average values.
Here is an example run:
run:
Enter 9 numbers
Value 1: 10
Value 2: 20
Value 3: 30
Value 4: 40
Value 5: 50
Value 6: 60
Value 7: 70
Value 8: 80
Value 9: 90
The average of row 1 is 20.00
The average of row 2 is 50.00
The average of row 3 is 80.00

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:30
Type the correct answer in the box. spell all words correctly. under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 3
question
Computers and Technology, 22.06.2019 17:30
Ou listened to a song on your computer. did you use hardware or software?
Answers: 2
question
Computers and Technology, 22.06.2019 21:00
Ulia is planning to attend the same private four-year college her parents attended. she wants to save at least $18,000 in four years to contribute to her college education. which monthly deposit amounts can julia use to achieve her goal? check all that apply.
Answers: 2
question
Computers and Technology, 23.06.2019 07:30
Which option allows you to view slides on the full computer screen?
Answers: 1
You know the right answer?
Create a new Java application called "Scorer" (without the quotation marks) that declares a two-dime...
Questions
question
English, 10.01.2022 23:50
question
Social Studies, 10.01.2022 23:50
question
English, 10.01.2022 23:50
question
Mathematics, 11.01.2022 01:00
Questions on the website: 13722363