Question: Develop a C++ program (array.cpp) that creates a two-dimensional array of integers according to the users request. Ask the user for the number of rows
Develop a C++ program (array.cpp) that creates a two-dimensional array of integers according to the users request. Ask the user for the number of rows and columns for the array, and all the elements of the array. Print the array contents along with the sum of each row, and the sum of each column. Be sure to deallocate memory for the two-dimensional array at the end of your program.
_____________________________________________________________________________________________________________________________________________________
Required Output (with input shown here in bold, but you dont have to worry about bolding!)
Input row
2
Input col
3
Input number at row 1 col 1
1
Input number at row 1 col 2
2
Input number at row 1 col 3
3
Input number at row 2 col 1
4
Input number at row 2 col 2
5
Input number at row 2 col 3
6
1 2 3
4 5 6
Sum of row 1 is 6
Sum of row 2 is 15
Sum of col 1 is 5
Sum of col 2 is 7
Sum of col 3 is 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
