Question: Write a program that reads a student name followed by five test scores. The program should output the student name, the five test scores,
Write a program that reads a student name followed by five test scores. The program should output the student name, the five test scores, and the average test score. Output the average test score with two decimal places. The data to be read is stored in a file called test.txt. The output should be stored in a file called testavg.out. Input Output A file containing the student name and the five test scores. A sample input is: Andrew Miller 87.50 89 65.75 37 98.50 The student name, the five test scores, and the average of the five test scores, saved to a file.
Step by Step Solution
3.46 Rating (156 Votes )
There are 3 Steps involved in it
Python Read input from file with opentesttxt r as inputfile inputdata inputfilereadline... View full answer
Get step-by-step solutions from verified subject matter experts
