Computer Science AB - Mrs. Bucaria

Files Assignment

Write a program that has and input file that looks as follows:

3
Susan 85 68 100
Elizabeth 45 78 82
Mark 34 56 89
John 67 34 100

Call the file grades.txt. The 3 is the number of grades that will follow the name. The code should work for any number of grades.

Make an output file called averages.txt that looks as follows for the above data:

Susan 84
Elizabeth 68
Mark 60
John 67

4 kids took the test
Average = 69.75

I suggest that you read in the file and output the data to the screen before attempting to make the output file and calculate the averages.

The Above will get you a 90 if you want higher DO SOMETHING ELSE WITH FILES!!

HAVE FUN!!!!!