Create a class called Matrix that represents a 3x3 matrix. This matrix contains a two-dimensional integer array of size 3x3. Provide the following member functions for this class: a. A no-argument...


Create a class called Matrix that represents a 3x3 matrix. This matrix contains a two-dimensional
integer array of size 3x3. Provide the following member functions for this class:
a. A no-argument constructor for initializing the matrix with 0 values.
b. A one-argument constructor to initialize the member matrix to the matrix sent as an argument
from the calling function.
c. An AddMatrix function for addition of two matrices
d. A MultiplyMatrix method for finding the product of the two matrices.
e. An isEqual function for checking the equality of two matrices
Note: Define all the member functions outside the class.
Write a main function to test this class.


1. Create a class called Matrix that represents a 3x3 matrix. This matrix contains a two-dimensional<br>integer array of size 3x3. Provide the following member functions for this class:<br>a. A no-argument constructor for initializing the matrix with 0 values.<br>b. A one-argument constructor to initialize the member matrix to the matrix sent as an argument<br>from the calling function.<br>C.<br>An AddMatrix function for addition of two matrices<br>d. A MultiplyMatrix method for finding the product of the two matrices.<br>An isEqual function for checking the equality of two matrices<br>Note: Define all the member functions outside the class.<br>Write a main function to test this class.<br>

Extracted text: 1. Create a class called Matrix that represents a 3x3 matrix. This matrix contains a two-dimensional integer array of size 3x3. Provide the following member functions for this class: a. A no-argument constructor for initializing the matrix with 0 values. b. A one-argument constructor to initialize the member matrix to the matrix sent as an argument from the calling function. C. An AddMatrix function for addition of two matrices d. A MultiplyMatrix method for finding the product of the two matrices. An isEqual function for checking the equality of two matrices Note: Define all the member functions outside the class. Write a main function to test this class.

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here