Ratings: 1 Star2 Stars3 Stars4 Stars5 Stars (5.00 out of 5) - Rate Now!

Download Category: - (95.49 KB)

Develop a program that reads students’ grades from a file named “studentdata.txt’, and writes their names and average into a new file named “studentaverage.txt’. Round the numbers to the closest integer.
The following sample file called studentdata.txt contains one line for each student in an imaginary class. The student’s name is the first thing on each line, followed by some exam scores. The number of scores might be different for each student.

studentdata.txt sample file content
Joe 10 65 80 90 100
Bill 83 76 69 72
Sue 98 72 77 84 52 97 94 91 99
Grace 82 21 75 90 98

studentaverage.txt sample file content
Joe 69
Bill 75
Sue 85
Grace 73

Get a fresh solution of this question. Ask it now to our experts.

Ask Your Question

We have verified professionals who are ready to answer your question.


Save Time and Money

We choose experts who can quickly answer your question and that suit your budget.


Get Your Answer

Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.