CPS 125 

				Alexander Ferworn

					LAB 6

Purpose:  This lab is to introduce you to the concepts of looping
and, in particular, nested loops in C, and to provide
further practice in implementing selections in C.

You are to write a C program to input information about
twelve Engineers and the hours they have each spent working on
one project, and produce statistics for those Engineers who have
been prime workers (more than 15 hours) on the project.  

The information is taken from a data file named lab6.data
found in the course directory /home/t4a/cps125aa/lab6. Each line
of the data file has one Engineer's employee number (integer)
followed by an integer value indicating the number of hours on the line
followed by a series of hours that Engineer has spent on the
project - each occasion an Engineer works on the project the
nearest number of whole hours spent in that session is logged,
and it is this information which has been entered into the data
file.  

For each Engineer, based on the data the program should
determine 

i) the total number of hours accumulated for the
project, and 
ii) the average number of hours per work session. 

However, the program should output the Engineer's employee
number, the number of hours spent on the project and the average
number of hours per session (all on one line) only if the number
of hours exceeds 15.  Use column headers to label the output,
rather than labelling each line.

Note that this program will need both types of loops which
have been studied.  Prior to coming into the lab, generate the
pseudocode for the program, and be prepared to submit it for
marking or review in the lab period.  Both this preparation and
the lab itself should form important components of study for the
mid-term test.

The data will be in the form

4    9   3 6 2 1 8 3 5 5 4
8    5   4 1 2 3 2
1    6   5 5 3 1 2 6
7    9   7 7 5 2 4 3 7 7 7
2    5   2 3 1 1 4
3    5   3 6 7 2 2
6    7   6 5 5 2 4 7 3
5    3   2 2 1
etc...