3 | ||||
bob | 10 | 10 | 10 | 10 |
fred | 2 | 12 | 14 | 15 |
john | 3 | 4 | 5 | 6 |
The program will then calculate the average mark for each student, it will write the name of the student and their average mark to another file. For the example above, the output file will contain
bob | 10 |
fred | 10.75 |
john | 4.5 |
In addition the program will print the overall average for the class to the screen.
Back to Main Page for Lecture 8 |