#include <fstream>
#include <iostream>
#include <cstdlib>
using namespace std;
int main ()
{
char out_file_name[15];
cout<<"Enter the name of your output file: ";
cin>>out_file_name;
ifstream input;
ofstream output;
cout<<"Begin editing files.\n";
input.open("Input.txt");
if (input.fail())
{
cout<<"Input file opening failed.\n";
exit(1);
}
output.open("output.txt");
if(output.fail())
{
cout<<"Output file opening failed.\n";
exit(1);
}
}
I need help with the continuation of this project. I'm asking for your help. These are the steps.
Read the input file.
Check if the input file exists and can be opened.
Get the name of the output file from the user (the name shouldn’t exceed 15
characters).
Invoke the necessary function calls to transpose, sub_matrix, determinant, inverse, and multiplication.
Print all information obtained to an output file.
Your output file should include the following for all input matrices
The original matrix.
The transpose of the original matrix.
The determinant of the original matrix.
The inverse of the original matrix (As long as the determinant is not zero).
The product of the original matrix and its inverse