Ask the user for the name of a file read the name of the


This program must be written in C, not C++.

Create a C program as follows:

1. Ask the user for the name of a file, read the name of the file from standard input. The first row of the file contains the number of rows and columns in the file. The remainder of the file is expected to contain a matrix of numbers in the form of multiple lines of space or tab delimited numbers. Examples are provided below. For this project, no valid input file shall have more then 20 rows or 20 columns.

2. Read the contents of the file and determine if the matrix of numbers exhibits "vertical additive symmetry". The definition of this term is provided below.

3. If the matrix of numbers in the file exhibits "vertical additive symmetry", output "vertical additive symmetry" to standard output. Otherwise, output "no vertical additive symmetry" to standard output.

4. Print each row of the matrix in descending order, one row per line of output, with each number separated by a space.

Definition of vertical additive symmetry: A matrix of numbers is defined to exhibit vertical additive symmetry if the sum of the numbers in the columns of the matrix exhibits vertical symmetry.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Ask the user for the name of a file read the name of the
Reference No:- TGS02900737

Expected delivery within 24 Hours