Question: use java please - Average of numbers in a matrix Problem Description Create a project named matrix. Use this project to write and run a

- Average of numbers in a matrix Problem Description Create a project named "matrix". Use this project to write and run a Java program that performs the following: o Define a 2D array named numbers of integers with a dimension of 4X5. o Prompts the user to read array elements o Find the average of each row elements o Print the array element in a tabular format -> Organize the output to appear as shown in the sample output below Sample Output Reading array elements: 12 17 10 12 9 22 30 23 44 20 6 8 19 15 48 39 27 -> Organize the output to appear as shown in the sample output below Sample Output Reading array elements: 12 17 10 12 9 22 30 23 44 20 18 15 48 39 27 44 60 80 Average of row 0 = 12.00 Average of row 1 = 27.80 Average of row 2 = 17.20 Average of row 3 = 50.00 Printing array in a tabular format: 12 17 10 12 30 23 44 20 6 8 9 15 48 39 27 60 80 22 44
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
