+1-415-670-9189
info@expertsmind.com
Write the code required to analyse and display the data
Course:- C/C++ Programming
Reference No.:- EM13254




Assignment Help
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

Average

  • 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
 
Minimize


Ask Question & Get Answers from Experts
Browse some more (C/C++ Programming) Materials
Write a C++ program to accept an n*m matrix containing only 0 and 1 values, and then find it's biggest zero submatrix i.e. the biggest submatrix in which all the values are
Create an employee class, including two data: an employee number (type int ) and the employee's compensation (in dollars; type float). The member data should comprise an int
You will write a program to generate a series of pseudo random numbers, using a linear feedback shift register method. You will start with an arbitrary number (not zero) x w
Write a C++ program to sort a list of number using vectors. Output the values when the elements are inserted into its correct position. Assume the first element in the list is
Briefly review Regular Expressions - the notation and the languages they represent with suitable examples using the basic operations - namely, concatenation, union , Kleene Cl
Define a structure to store roll no, name and marks of a student - using the structure of Q2. a), above write a 'C' program to create a file "student.dat". There must be one
Write down a program in C++ to calculate word ladders where single-character substitutions have the cost of 1, and single-character additions or deletions.
Create a structure to store the date (year, month and date as its members). Create a base class to store the above information. The member function should include functions to