Question: C++ Write a program to prompt the user with the following menu: Matrix String Quit If the user selects M or m then your program

C++

Write a program to prompt the user with the following menu:

Matrix String Quit

If the user selects M or m then your program should show the following submenu:

Transpose Addition

If the user selects a or A then your program should invoke a user defined function void addmatrix ( ) to add two 2 by 2 matrices. In this function you should call a user-defined function void readarray ( ) to read the elements of the matrices from the keyboard. After the addition you should invoke a user defined function void printarray () to print the elements of the original matrices and the sum matrix as follows:

You must user the pointer notations as follows:

Examples of pointer notation *A, *(*(A+i)+j)

Matrix A:

3

4

Matrix B:

8

7

A + B:

4 11

-3

If the user selects t or T then you should invoke a user defined function called transpose () to find the transpose of a 2 x 2 matrix and print the original and transposed matric in this function.

Matrix A:

3

4

Transpose of A:

6 7

3 4

If the user selects S or s then your ask the user to enter a text in lower case and convert it into uppercase.

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!