Write a program that can create two matrices


Problem:

Question- Write a program that can create two matrices and then adds them!

A.      The user first inputs the size length and width

B.      The user then inputs the size length and width of the next matrix

C.      Next the user populates that matrices with data

D.      The program must check to see if the dimensions match. Matrix addition requires the size of both to be the same. If they are not then print “Cannot add these! Dimension mismatch”          

E.       If they do match correctly then create a new matrix and put the newly added info inside of it.

F.       Add each component wise, so A[1][1] + B[1][1] = C[1][1] 

Please describe the code for the program that can create two matrices.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program that can create two matrices
Reference No:- TGS0892929

Expected delivery within 24 Hours