CS158A

Assignment 11(Due 4/25/1997)

In this assignment, you will perform processing on files containing student scores. To begin with, create a file called ass11.data and put the following numbers in it:

5
4
25 100 90 90
60 65 90 89
100 30 10 5
50 20 80 60
10 100 90 85 

The number on the first line indicates the number of students and the number on the second line indicates the number of projects per student. It is given that these will never exceed 25.

The rest of the numbers contain the individual student scores on separate lines. One line for each student. And each line contains as many scores as there are projects. Therefore, you will have to read the numbers in this file and store it into a 2-Dimensional array([25][25]).

Then, write 3 functions:

Your program should output the following table:

Therefore the output for the above file should be:

        proj1   proj2   proj3 proj4
min        10      20      10     5
max       100     100      90    90
mean       49      63      72    67


                min     max     mean
student1         25     100       76
student2         60      90       76
student3          5     100       36
student4         20      80       53
student5         10     100       73

-END-