Answered step by step
Verified Expert Solution
Question
1 Approved Answer
array c programing 1 and 2 and bouns I. It is required to write a header file containing the following 2-D matrix operations: a. Addition
array c programing 1 and 2 and bouns
I. It is required to write a header file containing the following 2-D matrix operations: a. Addition two matrices. b. Multiplication two matrices. C. Transpose 1 matrix. d. Check whether a given matrix is symmetric or not. e. Check whether a given matrix is "magic square" or not. (It is a magic square if the sum of rows, columns and diagonals are equal). II. Write a complete C program that accepts from the user two 2-D matrices to test all the functions. Note that: . . The functions should receive the dimensions of the matrices as input parameters. The functions should return a flag that connotes on the validity of the operation. A menu should be displayed to the user to choose the appropriate operation at the start of the program and after each operation execution until the user chooses to exit from the program. Bonus: The user should input the dimensions of the 2-D matrices and checks if they are valid or not. o If the dimensions are not valid, the program should give the user 3 other chances to re-input the 2-D dimensions. Dimensions are not valid if the values are negative or zero. OStep 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