Question: Directions: Develop a C++ program that can solve any matrix, up to 15 equations with 15 unknowns. Put the result on the screen as well

Directions:

Develop a C++ program that can solve any matrix, up to 15 equations with 15 unknowns. Put the result on the screen as well as write the results to a text file

This is what we were given as a hint:

/* how to read matrix data file in rows and colloms written by tom tucker 03/26/2018 it uses a string array to read in the first line and then a nested for statement to read in the matrix data */ using namespace std; float MatrixData[15][15]; int i, j, k, n, NumOfUnknowns ; float temp1, temp2; float dataIn; //functional prototypes void makeZero(); void makeOne(); void ReadFirstRow(); void InputMatrixData(); void showData(); #include  #include  ifstream temp3; int main() { ReadFirstRow(); InputMatrixData(); cout<>dataIn; MatrixData[i][j] = dataIn; cout<                                            

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!