Question: c++ questions, please help... i need to build the implementation file with that header file. my biggest issue is doing constructor 1. any advice would

 c++ questions, please help... i need to build the implementation file

c++ questions, please help... i need to build the implementation file with that header file. my biggest issue is doing constructor 1. any advice would be greatly appreciated! thanks

Please use the following class definition. Do Not Edit this (unless you find a mistake, in which case let me know first!) class matrixType private: int matrix[3][3]; public: void display(); void setMatrix(); bool equal(const matrixType & M) const; // returns true if the matrices are equal matrixType sum(const matrixType&M) const; matrixType product(const matrixType & M) const; // 3 by 3 matrix multiplication matrixType product(int c) const; // multiplication by a scalar matrixType(string filename); // this should read the values of a matrix from a file. matrixType(int a); The first constructor will read the values of the matrix from the file of the given name. For example, if filename = "matrix 1.txt" and matrix1.txt contains the following: 1 2 3 4 5 6 7 8 9 Then the 3 by 3 matrix stored in the object should be the following matrix: (1 14 7 2 5 8 3 6 9 The second constructor takes a single integer and should set all values in the matrix to that value. For example a call with the number 4 as input will set the matrix to 14 4 4

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!