The input file will look something like this:
Bernice 10 23 443 24 7 Zebediah 4 55 32 1 Agatha 2 34 Neville 32 222 1 3 1 2 2
Note that this time, the name comes first. Also, 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 prototypes of your procedures and functions should look like, and in what order you will implement and test the routines. So don't ignore what we did in class on Wednesday.
Start early, stay in touch, and have fun.