Question: C++ You are to write a computer program that will accept as input from the screen or read from a file two square matrices of

C++

You are to write a computer program that will accept as input from the screen or read from a file two square matrices of arbitrary size less than or equal to 10, and conduct basic operations upon them. The matrices must be multiplied (full matrix multiplication, not element-by-element), added, subtracted, and transposed (both matrices). Each operation must be contained within its own subroutine or function, and the input matrices passed to the subroutine or function as appropriate. For each operation, the resulting matrix must be formatted and written to a file that you will turn in. Screenshots or files that have been cleaned-up using Word or other software are not acceptable. For this assignment, the definition of formatted means that each matrix row and column must be evenly spaced so as to be legible without excessive white space (i.e. dont separate the rows and columns by ~15 blank spaces). Also, each value in the resulting matrix should have exactly two significant decimal figures, including any trailing zeros. In your file, it should be clear what each matrix is, so you will need to include additional print/write statements for that purpose.

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!