Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: https://solutionzip.com/downloads/studentaverage/
- 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
- Download: https://solutionzip.com/downloads/studentaverage/
Add Comment
Please, Sign In to add comment