Adjusting Grades from a File

  1. Suppose the grades of students are stored in a text file. Each line in the file is composed of three fields:
    1. stu_id
    2. stu_name
    3. grade
  2. 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.
  3. Each line of the output will be composed of four fields
    1. stu_id
    2. stu_name
    3. original_grade
    4. new_grade
  4. 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