Question: write a python program that inputs two square matrices and then calls functions that you create that add, subtract, and multiply the two matrices. Your
write a python program that inputs two square matrices and then calls functions that you create that add, subtract, and multiply the two matrices.
Your program must first ask the user the size of the square matrices that are to be used. This must be a number from 2 to 6. Next, the user is requested to enter the two matrices. Make certain that you give good directions on how this is to be done! If I cannot understand them, they are not good!
Next, the program prints out the two input matrices and then invokes the three functions. The first function adds the two matrices, the next subtracts the second from the first, and the third multiplies the two matrices. The program must print the results of these operations after each of the functions returns. Make certain to output these matrices in a way that is easy to read and understand!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
