Assignment 7
Due Friday, Nov 5, 04.
A file contains data in the following format:
Write a program to read in a name of a file of the type described above, then calculate the average test grade for each student and then write the SSN of each student followed by the average test score of the student on an output file whose name is entered by the user. The first line of the output file must be as shown below and each other line in the output file must contain a SSN of a student in the same format as the input file followed by the average test score for that student. For example if the input file looks like:
SSN Test1 (100) Test2 (100)
111-22-3333 80 70
222-33-4444 90 62
333-44-5555 85 84
Then the output file must look as follows:
SSN Average(100)
111-22-3333 75
222-33-4444 76
333-44-5555 84.5