Computer Science 1320

Homework Laboratory Assignment Six

Spring 2010

 

For this homework assignment, we shall investigate the properties of a collection of numbers. We shall also introduce the concept of an array.

 

Assume a data file contains an unknown number of numbers. We wish to find the largest number, the smallest number, the sum of the numbers, the mean (average) of the numbers, and the standard deviation of the numbers.

 

We shall read the numbers from a data file into an array using Unix's ability to redirect standard input (stdin).

 

Each of the tasks in the program must be completed by its own function. A possible sequence might be:

 

            fillArray()

            printArray()

            sunArray()

            findAverage()

            findMin()

            findMax()

            findStDev()

            display()

 

Other functional decompositions could work as well.

 

The handin requirements for this exercise are the same as before: title page, description, source code, sample execution and story.

 

Program due date: Wednesday,  24 Feb 2010