Question
please do it in C++(preferably using printf and scanf, we are suposed to use them, i know there is a way i just dont quite
please do it in C++(preferably using printf and scanf, we are suposed to use them, i know there is a way i just dont quite understand them i'm used to cin and cout, if not possible or too hard please do it with cin and cout but make sure to keep the other recuirments below)
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) and added. Furthermore, you must calculate the L2 norm (or Frobenius norm) and the determinant for each matrix. Do not include any other operations. 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 or result must be formatted and written to a file that you will turn in. The original matrices must also be written to your output file. 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. no blank lines between rows, and no more than 3 spaces between columns). Also, each value in the matrices and results should have exactly two significant decimal figures, including any trailing zeros, and decimal points must be aligned in the matrices. In your file, it should be clear what each matrix or result is, so you will need to include additional print/write statements for that purpose. The input matrices are on the next page. These matrices and their size must be entered from the keyboard or read from a file. They cannot be hard coded into your program.
please do it in C++ code ( using printf and scanf )
4.64 4.85 | 4.89 4.07 1.539.62 0.036.859.68 9.60 2.68 0.61 2.08 6.22 4.54 7.991.173.13 5.67 2.88 2.56 6.522.31 6.21 0.84 4.77 3.94 0.17 1.801.83 5.585.458.40 7.60 6.750.157.49 7.06 7.418.20 8.83 6.691.84 9.83 3.60 0.39 9.945.65 8.65 3.728.15 5.119.97 7.066.365.870.03 6.25 5.78 2.59 0.668.25 6.11 4.87 2.015.83 1.01 7.05 2.50 2.32 5.07 7.455.25 6.96 9.93 4.39 1.22 3.12 0.799.63 4.14 6.30 9.13 2.658.09 7.985.98 8.85 8.64 9.87 4.25| 8.16 8.12 2.68|5.152.35 7.117.14 7.03 9.93 7.767.89 4.62 3.24 | 5.19 0.15 9.333.59 8.69 1.34 7.08 4.419.62 1.17 5.148.61 5.59 3.784.148.23 7.69 |3.85 | 3.18 2.65 4.11 6.51 3.07 0.63 6.255.314.17 5.05 7.889.56 9.45 4.79 2.36 5.08 5.60 5.071.688.44 2.60 6.09|9.2.5 3.66 3.92 9.777.06 0.19 0.96 5.93 9.80 1.64 0.24 1.00 9.56| 5.042.57 3.114.617.474.25 8.62 5.24 3.80Step 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