Write the code required to analyse and display the data
Course:- C/C++ Programming
Reference No.:- EM13254

Assignment Help
Expertsmind Rated 4.9 / 5 based on 47215 reviews.
Review Site
Assignment Help >> C/C++ Programming

Using an appropriate C syntax, write the code required to analyse and display the data as per the problem description.

The order of the C Program should be as follows:

Variables and constants

  • Use #define statements to define the constants
  • Use arrays to store the data, average values, average map and counts

Read Data

  • Read each individual data item from the file using an appropriate method into a two dimensional array
  • Close the file when finished


  • Calculate and store the average for each row and column.
  • Determine and store the values for the Average Map
  • Calculate the counts for each row and column in the Average Map where the value is 1, 0 or -1
  • Display the Average Map and counts
  • Develop a method to identify if any count for a row or column results in rejecting the sheet of material
  • Search and report if the sheet is defective

NOTE : Ensure you use appropriate and efficient use of variables and constants in your design.  I may wish to change the symbols used to reflect the outcome of  #,*,$ instead of 1,0,-1 and as a consequence I should only change this in one cell to reflect the change throughout the code.

Put your comment

Ask Question & Get Answers from Experts
Browse some more (C/C++ Programming) Materials
You have just upgraded your system to a "fast and wide" SCSI interface. This system has a floppy disk, a CD-ROM and five 8-gigabyte fixed disks. What is the device number of
Write a program that uses the class SalariedEmployee shown below. Your program is to define a class called Administrator, which is to be derived from the class SalariedEmplo
What if the initial value assigned to a is 13, not 3? What happens with this code and why does this occur? What does this tell you about setting up conditional expressions i
Write a test program that prompts the user to enter a phone number as a string. The input number may contain letters. The program translates a letter (upper- or lowercase) t
Create a Friend class that contains a first name, last name, a birthday, and a telephone number. Create a Contacts class that contains an array of Friend as well as the owne
Write a program to convert between rectangular and cylindrical coordinates, based upon user input. For example, if the user wants to convert cylindrical to rectangular coordin
Write a C program that prompts the user to enter a line of text (up to 50 characters). It should then convert the text entered to uppercase letters and then to lowercase le
Write a program that draws a picture of a house. It could be as easy as the accompanying figure, or if you like, make it more elaborate (3-D, skyscraper, marble columns in t