Question: Create a Matrix class and implement the following member functions: example of this would be: After this is completed, create a driver function to test
Create a Matrix class and implement the following member functions:

example of this would be:

After this is completed, create a driver function to test this with these rules:

Thank you so much!! Please be sure to write comments about what each part does. Also, this is for CS 1 so please keep this pretty basic.
. The constructors and the destructor .getSize() which returns the size of the matrix; setValue( int position, int value) which sets the value in the matrix at given position; * getValue (int position) which returns the current value at given position; . an add method which adds two matrices together; . a subtract method which subtract two matrices together; . a multiply methods which multiplies two matrices together, if possible; . an overlap function which overlaps two matrices together. The augment function takes two matrices A and B of size mlxnl and m2xn2, respectively, and produce a new matrix n2). The values of C will either come from the original matrices by overlapping matrix B over matrix A. Wherever a value is not available it initialized to default value 0. For example: If you overlap two matrices A of size 4x2 and B of size 3x5, the resulting matrix C is of size 4x5. A-235 134 C-A overlap B835 334 500 1. 2. 3. 4. initialize two matrices A and B add A and B together and then subtracts them print both input matrices and the resulting matrix after addition and subtraction print both input matrices and the resulting matrix after multiplication, if possible. If not possible explain the reason of th overlap the two matrices by using the overlap function. display both input matrices and the output matrix produced by the overlap function. e error 5. 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
