Exercises — Outcome 8: File Input and Output
1 hands-on tasks. Do them in order; each one feeds the Canvas item it names.
30 min · hands-on
1. Grade File Logger
- Write a program that asks the user for their name and three test scores.
- Write the data to a file named 'grades.txt' with one entry per line in format: Name, Score1, Score2, Score3.
- Write a second program that reads 'grades.txt', calculates the average for each student, and prints the results.
Turn in / bring: Both Python scripts and the contents of grades.txt submitted to Canvas.