Question: Using Python: Create a program that would simulate matrix multiplication. The image below shows the process for matrix multiplication No library should be imported for
- No library should be imported for this proram.
- The program should require the user to input two matrix inputs only. No more than two outputs should be asked from the user.
- The matrix dimensions should not be asked from the user but the resulting matrix and matrix size should be automatically identified and checked before hand.
- For this activity, although the process is repeatable for various sizes, the only sizes that will be prioritized for this activity are the following matrix sizes (2x2,2x3,2x4,3x2,3x3,3x4,4x2,4x3,4x4). Other matrix sizes may not be considered.
- The program should check if the inner matrix dimensions are compatible/equal (Ex. 2x3 3x4 should be accepted, 3x2 4x2 should not be accepted) otherwise the program should not proceed with the computation.
- The program should display the output matrix accordingly.
For multiplication to be defined, the "inner" numbers must match. The result will be determined by the "outer" numbers. 6 3 -1 0 2 1 4 5 27 -2 12 1 1 0 4 = 0 1 1 -1 6 0 6 -2 5 0 2 2 x 3 3 x 4 2 x 4 Tmatch result
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
