USING JAVA Write a program with the following features: A method that takes the
ID: 3675676 • Letter: U
Question
USING JAVA
Write a program with the following features:
A method that takes the number of rows and the number of columns as parameters and returns a 2D
array populated with random integers between [0, 9].
A method that takes the 2D array as a parameter and displays the array in table format.
A method which takes the 2D array as a parameter and displays the sum and average of the entire array.
A method which takes the 2D array as a parameter and displays the sum and average of each row.
A method which takes the 2D array as a parameter and displays the sum and average of each column.
A method which takes the 2D array as a parameter and displays the sum and average of the major and
minor diagonals **see below**.
Write the main method to use these methods to display the results.
NOTE: To get full credit your program must work with an n x n, m x n, and n x m 2D array.
Explanation / Answer
display array in table format
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.