Python Programming: 1. Create a text file in your python directory (or in c:\\)
ID: 3697131 • Letter: P
Question
Python Programming: 1. Create a text file in your python directory (or in c:) called scores.txt. This file will have the grade information for a number of students, one student “record” per line. 2. Each line will have the following “fields”, each separated from the other by a space: student’s first name student’s last name midterm grade final grade 3. Your program will read scores.txt, and calculate each student’s average and their deviation from the class average. You should be able to accommodate classes of any size (i.e. your program will not know beforehand how many student entries the file has). 4. Your program will then write a file called results.txt (also to the Python directory) so that each line has: student’s first name student’s last name midterm grade final grade average deviationExplanation / Answer
ClassGradeList3.py
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.