a. A main method asks the user to provide the number of rows and columns for a 2-dimensional array of integers. b. A main method calls the getArray() method that creates the 2D array of specified size and populates it with random values from 0 to 100. c. A main method prints the elements of the 2D array created by getArray().
following:
a. A main method asks the user to provide the number of rows and columns for a 2-dimensional array
of integers.
b. A main method calls the getArray() method that creates the 2D array of specified size and populates
it with random values from 0 to 100.
c. A main method prints the elements of the 2D array created by getArray().
d. A main method calls the printProduct method that will:
i. Receive the two-dimensional array as input
ii. Calculate the product of elements in each row of the array
iii. Display the product on the Console.
The product of all elements in each row should be formatted as "Row 1 Product XXXX"
Step by step
Solved in 4 steps with 3 images