Question: Write a program that randomly fills in 0-9 into an n times m matrix, prints the matrix, and finds the rows and columns with the
Write a program that randomly fills in 0-9 into an n times m matrix, prints the matrix, and finds the rows and columns with the largest value. You can use different approaches to solve this problem. For example, you can use two-dimensional arrays to store randomly generated data and ArrayList for saving the indices. Expected results: Enter the number of rows: 4 Enter the number of columns: 6 The array content is: 7 9 6 0 4 3 0 4 8 4 8 2 2 1 1 4 5 2 7 3 5 9 6 0 The index of the largest row: 3 The index of the largest column: 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
