Question: 1-Create in c++ a program that asks the user to fill the contents of a previously created 2D matrix [3*3] ( Natural numbers only) 2-in

1-Create in c++ a program that asks the user to fill the contents of a previously created 2D matrix [3*3] ( Natural numbers only)

2-in a previously created 1D matrix (witchs length is the previous 2D matrixs height),the program has to store the result of adding the numbers in the first row of the 2D matrix to themselves in the first value position in the 1D matrix, then add the first row to the second row and store it in the second value position in the 1D matrix, and then add the first row to the last row in the 2D matrix then store it in the last value position in the 1D matrix(in the end the 1D matrix should look like:1D= [ sum of first row values *2, sum of 1st row values and 2nd row values, sum of 1st row values and 3rd row values] )

3-the program has to show the inverted 2D matrix that the user created (inverted by rows the first row should be the last row and the last one should be the first one )

4-the program has to show the results of adding the first value of the 1D matrix to the first value of the first column of the Inverted 2D matrix and show the result of adding the second value of the 1D matrix to the second value of the first column of the inverted 2D matrix and then show the result of adding the third value of the 1D matrix to the last value of the first column of the inverted 2D matrix(first column is the left column)

5-The program has to multiply the value that is in the center of the 2D matrix by every single value in that matrix and store the results in the corresponding Positions in a square matrix with the same dimensions of the 2D matrix.

6-The program has to show the largest value in the 1D matrix and show the second largest value in that same matrix.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!