Question: C++ please help You will develop an application for matrix calculations. (1) It is required to design and implement a generic class Matrix, in the

C++ please help

 C++ please help You will develop an application for matrix calculations.

You will develop an application for matrix calculations. (1) It is required to design and implement a generic class Matrix, in the form of a class template that accepts a type parameter. This way, when the class Matrix is instantiated, we decide if it should accept float, int or double, etc. [2 points] (2) Matrix class holds a matrix of any size and allocates the required memory as needed. [2 points] (3) Matrix class should have a destructor that frees used memory at the end of lifetime of each Matrix objects. [2 points] (4) Matrix class specifications should be in a separate header ".h" file. [2 points] (5) It should have a pointer to pointer attribute that points to the matrix content. It should have suitable constructors and methods for allocating the required memory space based on the dimensions decided by the user. [2 points] (6) Overload standard operators and I/O operators to enable Matrix class with addition, subtraction and multiplication and suitable input and output capabilities. Add a method for matrix transpose. [12 points,2 points for each function] (7) Then develop a MatrixCalculator class which offers the user a menu of operations to perform on int matrices as follows. Each of these options should be able to accept matrices of varying dimensions, which the user inputs. For multiplication, the calculator should check that two matrices are of dimensions nm and mp. [8 points, 2 for each choice]

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!