Question: Write a C++ program to accept two matrices of size defined by the user (user should enter row size and column size), display their

Write a C++ program to accept two matrices of size defined by the user (user should enter row size and column

Write a C++ program to accept two matrices of size defined by the user (user should enter row size and column size), display their sum and difference. If size doesn't match, show an error message. Q2. Write a C++ program that accepts two arrays of same size (user required to input the size) and calculate the following: 3A-4B (where A is the first matrix and B is the second matrix) Q3. Write a C++ program that accepts two arrays of size defined by the user and calculate product of two matrices. If the size doesn't match, show an error message. Q4. Write a C++ program that accepts two arrays of size 4x4, calculate AA + 2AB and display the result, where A is the transpose of A. Q5. Write a C++ program to create a matrix that has 33 on the diagonal line, 66 in locations above the diagonal line and 11 in locations below the diagonal line. See the example given below. 33 66 66 66 11 33 66 66 11 11 33 66 11 11 11 33 Q6. Write a C++ program that accepts two arrays of size 4x4, calculate AA, ATA and display the results, where A is the transpose of A.

Step by Step Solution

3.52 Rating (142 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solution to Q2 Write a C program that accepts two arrays of same size user required to input the size and calculate the following 3A4B where A is the ... View full answer

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 Programming Questions!