Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

2. Compare the sales and service departments at Auto World.

Answered: 1 week ago