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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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