Question: using java Create a menu driven program called matrices that at add, subtract and multiply matrices. Create a void method addMatrices() that constructs 2 matrices

using java using java Create a menu driven program called matrices that at add,

Create a menu driven program called matrices that at add, subtract and multiply matrices. Create a void method addMatrices() that constructs 2 matrices out of the number of rows and columns the user specifies and then asks the user to enter in the values. Create a Menu option which includes addition and subtraction. Modify the program to give the option of performing Matrix Addition: [1 37 07 1+0 3+0 13 1 0 + + 175 1 +7 0+5 8 5 1 2 2 1 1 +2 2+1 33 a. Modify the program to give the option of performing Matrix Subtraction: And use the method subtractMatrices() to accomplish this. 1 37 ] [1-0 3-0 1 3 1 0 7 5 1 -7 0 - 5 -6 -5 1 2 2 1 1 - 2 2 - 1 -1 1 I Each method should print out the resulting matrix. Part2. Create a void method multMatrices() that constructs 2 matrices out of the number of rows and columns the user specifies and then asks the user to enter in the values. Note: 2 matrices can be different dimension however their column of 1 matrix must be the same number as the rows of the other to perform multiplication. The product of an mx matrix A with an pxn matrix B is an mxn matrix denoted AB (14 9 3 2 11 15 0 12 17 5 2 3 [12 257 9 10 8 5 [273 4557 243 235 244 205 102 160 AB= Note: Print of the resulting matrix

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!