Adjusting Grades from a File
- Suppose the grades of students are stored in a text file.
Each line in the file is composed of three fields:
- stu_id
- stu_name
- grade
- Write a python program which will input the file name of the above
file, apply the formula you developed in a
previous exercise to adjust
grades, and then output the result to a text file.
- Each line of the output will be composed of four fields
- stu_id
- stu_name
- original_grade
- new_grade
- The output filename is also specified by the user.
Your program may run as follows:
Please type the filename of student grades -- grade.txt
Please type a new filename to store adjusted grades -- new_grade.txt