You will be using a file similar tostudents.txtDownload students.txtas input to your Python program. The file contains student information in the...







  1. You will be using a file similar to


    students.txt








    Download students.txt





    as input to your Python program. The file contains student information in the format
    studentId,lastName,firstName,major,gpa






  2. Each line contains information about one student.



  3. Your program should use a dictionary to store all the information in the file. Use the studentId as the key and a list, that contains lastName, firstName, major, gpa, as the value for each of the dictionary items. Remember that lists can contain heterogeneous data.



  4. Once the data from the file has been stored in a dictionary, your program should present the user with a menu
    Choose an option:       1) Search by Last Name       2) Search by Major       3) Search by GPA       4) Quit






  5. Your program should run until the user chooses to quit. When the user selects one of the three search options, prompt the user for the search criteria (Enter last name to search for etc.). For GPA search, your program should return all students whose GPA is greater than or equal to the search term (For example, if the user enters 3.5 for GPA search, then your program should return all students whose GPA is greater than or equal to 3.5).



  6. Your program should print all 5 fields for each of the search results. For example, if you search by last name for Smith, then your program should print all 5 fields for all students whose last name is Smith



Apr 13, 2023
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here