Question: Java Programming Thank you. Write a Java program to ask the user to enter how many rows and columns of integers i in the range
Write a Java program to ask the user to enter how many rows and columns of integers i in the range of 0 lessthanorequalto i lessthanorequalto 9 she/he would like to generate. The rows and columns form a rectangle matrix of generated numbers, and the numbers are stored in a two-dimensional array. The elements of the array, the sum of the integer numbers, and the average of those numbers are to be displayed. The following is a sample run of the program: Please input the number of rows of int you wish to generate: 2 Please input the number of columns of int you wish to generate: 3 Generated random integers of array: 1 6 3 8 5 5 Sum of array: 28 Average of array: 4.6667
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
