Print each row of the matrix in descending order

Assignment Help Computer Engineering
Reference no: EM132107282

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.

Reference no: EM132107282

Questions Cloud

Create a c program that will show a maze : Create a C program that will show a maze in the terminal window and will show a mouse walking through the maze attempting to locate the exit door.
Write a program that converts temperature : Write a program that converts temperature from Celsius to Fahrenheit or vice versa, depending on user's input.
Should michael take a multivitamin and mineral supplement : A) Should Michael take a multivitamin and mineral supplement "just for the insurance"? Why or why not?
Why program objectives needs to be defined : Why Program Objectives needs to be defined in details prior to program and Project Plan? Clarify the statement with proper explanation.
Print each row of the matrix in descending order : 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 file.
Write a single statement that computes the product : Place the results in a register of the appropriate size, remember to consider efficient use of available resources.
Relationship between being overweight or obese : 1. What symptoms of type 2 diabetes does Mrs. Folley manifest? Explain the pathophysiology of these symptoms.
Displays a count down to zero from a number supplied : Displays a count down to zero from a number supplied by the user at the command line.
Discuss the complications of liver disease : Patient presents with malnutrition secondary to liver disease. Name two (2) nutrition or medical problems and discuss the complications of liver disease

Reviews

Write a Review

Computer Engineering Questions & Answers

  Explain the significance of each word in the acronym url

Explain the significance of each word in the acronym URL. What happens if you leave out the port number in the URL?

  Write a program to implement dynamic motion specifications

Write a program to implement dynamic motion specifications. Specify a scene with two or more objects. initial motion parameters, and specified forces.

  Potential vulnerabilities in purchasing with a debit card

Recognize any potential vulnerabilities in the act of forming a purchase along with a debit card.

  Show how various sampling methods can be used

CS544 Final Project - Draw various random samples of the data and show the applicability of the Central Limit Theorem for this variable and show how various sampling methods can be used on your data.

  Program to evaluate case statement

Program to evaluate case statement

  Create a new course registration system

Suppose that your university were interested in creating a new course registration system that could support Web-based registration.

  How do you convert contents of file shortlist to uppercase

How do you remove repeated lines from an unsorted file where repeated lines are contiguous. How do you convert the contents of the file shortlist to uppercase?

  Implement mergesort for linked lists on your computer

Implement mergesort for linked lists on your computer. Use the same conventions and the same test data used for implementing and testing the linked version.

  Questiongiven a series of numbers that represent adding

questiongiven a series of numbers that represent adding fuel 2 and subtracting fuel 1 determine highest distance that

  Write down functions to calculate the mean, variance

If x denotes the mean of a sequence of numbers x1, x2,.....xn, the variance is an average of the squares of the deviations of the numbers from the mean, and the standard deviation is the square root of the variance.

  Write a program that initializes the list scores

Write a program that initializes the list scores with the values in the text file scores.txt and calls the gameNim() function, once the game has finished the list scores are updated with the results.

  Write a monitor as a barrier counter for the synchronization

Write a monitor as a barrier counter for the synchronization of n concurrent processes. Note that local and shared variable must be declared and initialization.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd