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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started