Question: Write a Python program that does the following: Reads students' grades from a text file of the following format (sample file shown to the right):
Write a Python program that does the following:
Reads students' grades from a text file of the following
format (sample file shown to the right):
All the numbers in a single line are grades of one student.
Each line represents the grades of a different student.
The file may contain a large number of students and grades,
Processes the data and calculates the average grade of
each student.
Writes to a new text file the averages of the students (one
average per line corresponding to the grades). Sample
output shown to the right.
70.0 75.5 82.0 88.0 90.0 95.5 86.0 92.5 78.5 85.0 75.5 68.0 Write a Python program that does the following: Reads students' grades from a text file of the following format (sample file shown to the right): . All the numbers in a single line are grades of one student. Each line represents the grades of a different student. The file may contain a large number of students and grades. Processes the data and calculates the average grade of each student. Writes to a new text file the averages of the students (one average per line corresponding to the grades). Sample output shown to the right. 78.875 91.0 3 76.75
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
