Question: Please include comments for further understanding, thanks! Create a C program as follows Ask the user for the name of a file, reading the name


Please include comments for further understanding, thanks!
Create a C program as follows Ask the user for the name of a file, reading the name of the file from standard input. The first two values in the file contains the number of rows and columns in a matrix. The remainder of the file is expected to contain the numbers in a matrix. Simple examples are provided below. For this project, no valid input file shall have more than 20 rows or 20 columns 1. 2. Read the contents of the file and determine if the matrix of numbers exhibits "horizontal additive symmetry". The definition of this term is provided below 3. If the matrix of numbers in the file exhibits "horizontal additive symmetry", output "horizontal additive symmetry" to standard output. Otherwise, output "no horizontal additive symmetry" to standard output. 4. Print each row of the matrix, with the values of that row in descending order, one row per line of output. Format the output in an organized table usin,g right-justified columns, as seen below. You must write your own function to sort the numbers. 5. Ask the user if they wish to process another file. If so, go back to step #1 above. Otherwise, terminate the program. Your program should use "defensive programming" techniques. This means your program should check input provided by the user for errors and deal with unexpected values without crashing. Ideally, the program should recover from any errors and continue processing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
