(Largest rows and columns) Rewrite Programming Exercise using vectors. The program randomly fills in 0s and 1s into a 4 X 4 matrix, prints the matrix, and finds the rows and columns with the most 1 s. Here is a sample run:
0011
1011
1101
1010
The largest row index: 1, 2
The largest column index: 0, 2, 3
Programming Exercise (Largest row and column) Write a program that randomly fills in 0s and 1s into a 4 × 4 matrix, prints the matrix, and finds the first row and first column with the most 1s. Here is a sample run of the program:
0011
1011
1101
1010
The largest row index: 1
The largest column index: 2
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.