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 10:30
Choose the best explanation for the following statement communication is symbolic
Answers: 3
question
Computers and Technology, 23.06.2019 06:30
You are consulting for a beverage distributor who is interested in determining the benefits it could achieve from implementing new information systems. what will you advise as the first step?
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Which of the following includes the three primary network access technologies? dsl, cable modem, broadband lan, wan, man voip, uc, iptv tcp/ip, ftp, dhcp
Answers: 2
question
Computers and Technology, 24.06.2019 00:20
Describe a data structures that supports the stack push and pop operations and a third operation findmin, which returns the smallest element in the data structure, all in o(1) worst-case time.
Answers: 2
You know the right answer?
Create a new Java application called "Scorer" (without the quotation marks) that declares a two-dime...
Questions
question
English, 22.10.2020 09:01
question
History, 22.10.2020 09:01
question
Mathematics, 22.10.2020 09:01
question
Health, 22.10.2020 09:01