CPS 125 

				Alexander Ferworn

					LAB 8

Purpose: This lab is to introduce you to pointers in C and call
by reference.  

This lab is in some ways an extension of Lab 7, but it
introduces some important new concepts beyond those of Lab 7.  

Please write a C program with a main function and three
additional functions to input five floating point values, and
output their average, variance, and standard deviation. 

The first additional function is to input the data using
redirection from a data file which you are to create in your
cps125 subdirectory.  

The second additional function should be passed the five
values using "call by value", and calculate the mean, the
variance, and the standard deviation, the last three being "call
by reference" parameters (why?).

The third additional function should echo the input data to
the screen, and output the calculated values, all properly
labelled.

IMPORTANT: Do not use pointers where you do not need them.   Be
certain you understand where you need them and why you need them
where you do.

If you expect to complete this lab before the end of the lab
period, read ahead in the Chapter on arrays and be prepared to
repeat this lab using a one dimensional array to pass the five
values between functions.