Question: In c++ please 5. Output Formatting Write a program that reads the entries of two matrices A, B from a file. The name of the
5. Output Formatting Write a program that reads the entries of two matrices A, B from a file. The name of the file is matrixAB.txt. Each line of the file represents one matrix record. The record consists of the matrix symbol (single character) and the four entries of a 22 matrix. The first two numbers represent first row entries of matrix (x11,x12) and the third and fourth entries represent second row entries (x21,x22). You will produce a nicely formatted output file that displays the A, B, C, D, and P records, each on a separate line. The C matrix is A+B. The D matrix is BA, and the P matrix is the product of A and B (Please investigate matrix multiplication because the P matrix is not the product of corresponding entries). Name the output file MatrixABCDP.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
