Question: Download the files courses.txt, students.txt. Create a module, course_info.py that contains the following functions: get_grade(): takes a string grade as a parameter, and returns the

  1. Download the files courses.txt, students.txt.
  2. Create a module, course_info.py that contains the following functions:
    1. get_grade(): takes a string grade as a parameter, and returns the float grade points for the given grade. Example: A -> returns 4.0.
    2. find_id(): takes a string file name and a student name as parameters. Returns the id of the student with the given name. If no student is found, returns -99. The student name is not case sensitive.
    3. find_courses(): takes a file name and a student id, and semester as parameters. Returns the average grade points, and string set of courses for the student with the given id, for the given semester. If no courses are found, average will be zero and the (string) courses will be an empty string.
  3. Write a script, yourname_student_app.py that inputs the name of a student and a semester from the user. Using functionality defined in the module, your program should display the courses taken by the student and the average grade of the student for the given semester. If student/courses are not found, display a meaningful message (see sample run below). Write the student id and average grade to a file with the name .txt . The program should keep inputting student names/semesters and searching courses until the user inputs exit for the student name to quit (not case sensitive).
  4. Upload course_info.py and yourname_student_app.py in a zip file with the name: Lab04_yourname.zip.
  5. how can I upload them ??

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!