CS 117 Assignment
Due Monday, 5/12/97


For this assignment you will write a data-processing program. A legal input file for this program will consist of lines like this:

Bernice 10 23 443 24 7
Zebediah 4 55 32 1
Agatha 2 34
Neville 32 222 1 3 1 2 2

Maybe they're miniature golf scores, maybe they're test scores, maybe they're blood test results. Let the numbers mean whatever you want them to mean.

Note that the number of scores listed for each person is variable--Agatha has only two scores here, while Neville has seven. You may assume that no person has more than ten scores, and that there will be no more than 100 people in the data file.

Your task is to read this data file in, and print out two lists of names, maxima, and averages. The first list should be sorted alphabetically by name, and the second should be sorted by average score.

Thus, the output corresponding to the 4-person file example above should look something like this:

Name        Max       Avg
--------------------------
Agatha       34      18.00
Bernice     443     101.40
Neville     222      37.57
Zebediah     55      23.00


Name        Max       Avg
--------------------------
Bernice     443     101.40
Neville     222      37.57
Zebediah     55      23.00
Agatha       34      18.00

This program is big enough that you need to think carefully about how to organize it, what the interfaces of your procedures and functions should look like, and in what order you will implement and test the routines.

Start early, stay in touch, and have fun.



Jeff Ondich, Department of Mathematics and Computer Science, Carleton College, Northfield, MN 55057
(507) 646-4364, jondich@carleton.edu