Question: Write a C++ program that will muliply two arrays and print the answer in matrix form. First the program should promt the user to enter

Write a C++ program that will muliply two arrays and print the answer in matrix form. First the program should promt the user to enter the dimensions of the first array (rows then columns), then promt the user to read in the array. Second the program should promt the user to enter the dimensions of the second array, then prompt the user to read in that array.

Arrays will be no bigger than 10x10, but they will not necessarily by square. It is possible to give arrays that can not be multiplied. In this case the program should output and error message.

Note: You MUST use arrays of size 10x10 and figure out how the code can handle smaller arrays stored in the 10x10 array.

Example Run:

Please input the dimensions of the array: 2 3

Please input array:

Write a C++ program that will muliply two arrays and print the

Please input the dimensions of the 2nd array: 3 2

Please input array:

answer in matrix form. First the program should promt the user to

The answer is

enter the dimensions of the first array (rows then columns), then promt

NOTE: No classes, structs, or pointers are allowed

2 3 4 -1 2

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!