Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem: Design, develop, implement, and test the following: A two-dimensional n

ID: 3609463 • Letter: P

Question

Problem:

Design, develop, implement, and test the following:

A two-dimensional numeric array having m rows andn columns is called an m x n matrix.Youare to build a class MATRIX that has the following operationmembers to manipulate matrices: multiply, divide, add and subtract.Below is an example one of these operations, matrixmultiplication.

Suppose that Mat1 is an m x n matrixand Mat2 is an n x p matrix. The productMat3 of Mat1 and Mat2 is an m x p matrixwith the entry Mat3 [i] [j], which appears in the ith row and thejth column, give by Mat3 [i] [j] = the sum of the products of theentries in row i of Mat1 with the entries of column j of Mat2.

Note that the number of column in Mat1 must equal the number ofrows in Mat2 for the product of Mat1 with Mat2 to be defined.

Explanation / Answer

please rate - thanks sorry - I'm lost on the division!! #include #include using namespace std; class Matrix {public:      Matrix add(Matrix,Matrix);      Matrix subtract(Matrix,Matrix);      Matrix multiply(Matrix,Matrix);      Matrix divide(Matrix,Matrix);      void getdim(string);      void getmat(string);      void outmat(string);      void dimout(string); private:      int dim1, dim2, mat[10][10]; }; int main() {Matrix x,y,z; x.getdim("x"); y.getdim("y"); x.getmat("x"); y.getmat("y"); cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote