Thursday, August 8, 2013

Two-Dimensional Array to Store Floating Point C

Download Solution From here:
Learning Outcomes
This assessment tests the following learning outcomes:
  • Write and debug small programs in C using system libraries and APIs in an appropriate IDE.
  • Demonstrate an appreciation of accessing, manipulating and managing system-level resources, such as memory.
  • Demonstrate an understanding of the principles of imperative and structured programming.

Assignment Task
For this assignment you are required to create an application which creates a two-dimensional array to store floating point numbers representing the actual values of samples of steel bar in a production process. The number of samples in the array will be determined at run-time. This is very similar to containing the data in a spreadsheet.

The array should store the following:
  1. The sample number, length, diameter and weight of each sample;
  2. The average value for each of the above
  3. The maximum and minimum values of each of the above
Your program should be able to print this out in a user friendly format and to have the option of printing to a text file.

Submission:
You should submit a single program file named yourname.c

The file should be fully commented and should run on the computers in the labs.

No comments:

Post a Comment