[ "ID": "700001", "Name": "Emily White", "Phone": "816-111-1111", "Major": "CS" \}, \{ "ID": "700002", "Name": "David Bachman", "Phone": "816-222-2222", "Major": "CYBR" \}, \{ "ID": "700003", "Name": "Jason James", "Phone": "816-333-3333", "Major": "SE" \} ]
your program. User can choose from six different menus. 1. Add a student, 2 . Delete a student, 3 . Modify a student, 4. Query a student, 5. Display all students and 6. Exit the system - 1. Add a student - 2. Delete a student - 3. Modify a student - 4. Query a student - 5. Display all students - 6. Exit the system
2. If you have student accounts created earlier, you can choose any menu items. If this is the first time you are using the system, you need to add new student accounts first. Enter 1 to choose the Add a student option. The system should first display the general rules concerns the student account information. It then prompts you to enter the student ID. Please Enter the Operation Code: 1 1. The first letter of firstname and lastname must be capitalized 2. Firstname and lastname must each have at least two letters 3. No digit allowed in the name 4. Student ID is 6 digits long which must starts with 700 5. Phone must be in the \( (x x x-x x x-x x x x) \) format 6. Student major must be in CS, CYBR, SE, IT or DS Please enter the student ID: 700001 Please Enter the Student Name (Firstname Lastname): Donald Trump Please Enter the Student Phone a: 816-111-1111 - 1. Add a student You do not need to implement the rules checking on user inputs in this homework except for the student major since we have not covered the regular expressions. If the student major does not meet the criteria, an error message will be displayed. You will be asked to retype the student major until a valid major is provided. It is worth noting that for major, you can enter either lowercase or uppercase. Your program will save the major in all uppercase in the student record. After a student record has been added successfully, your program should return to the welcome page so that user can select another option. Please add several more student records for future use.
The following table lists the Unicode for symbols you need for the program.
3. Enter 5 to choose the Display all students option. Your program should list all student records stored. You may notice that when I created the account for Donald, I entered cs for his major. The major is savec in all uppercase in the student record file. After student records have been displayed successfully, your program should return to the welcome page so that user can select another option. - 1. Add a student 4. Enter 1 to choose the Add a student option again. Assume this time you provided an ID already existed in the record, an error message will be displayed and you will be returned to the welcome page so that you can make a new menu selection. Please Enter the Operation Code: 1 1. The first letter of firstname and lastname must be capitalized 2. Firstname and lastname must each have at least two letters 3. No digit allowed in the name 4. Student ID is 6 digits long which must starts with 700 5. Phone must be in the \( (x x x-x x x-x x x x) \) format 6. Student major must be in CS, CYBR, SE, IT or DS Please enter the student ID: 700001 \( \times \) Student ID already Exists in the System. Please Enter a Different ID
5. Enter 4 to choose the Query a student option. If you enter an ID which does not exist in the system, the system should display an error message indicating the ID provided is not existed in the system and you will be returned to the welcome page so that you can make a new menu selection. - 1. Add a student If a valid student ID is provided, the student record will be displayed and you will be returned to the welcome page so that you can make a new menu selection. Please Enter the Dperation Code: 4 Please Enter the student ID You Want to Query; 700001 Q ID: 700001, Name: Donald Trump, Phone: 816-111-1111, Major: CS \( \phi \boldsymbol{\phi} \) Student Management System v1.0 \( \boldsymbol{\phi} \)
7. Enter 2 to choose the Delete a student option. You will be prompted for entering a student ID to delete. If you provided the wrong ID, an error message will be displayed and you will be returned to the welcome page so that you can make a new menu selection.
If a valid name is provided, the current student record will be displayed first. After that, you will be asked confirm the deletion. If user confirms, the student record will be deleted and your program should return to the welcome page so that user can select another option. Otherwise, you will be returned to the welcome page without deleting the record. It is worth noting, user can enter either lowercase or uppercase of \( \mathrm{y} \) and \( \mathrm{n} \) for confirmation. * \( \boldsymbol{*} \) Student Management system v1.0 \$?? 1. Add a student 8. Enter 6 to choose Exit the system option. The system will prompt you to enter \( \mathrm{Y} \) or \( \mathrm{N} \) to confirm before exiting the system. User can enter either lowercase or uppercase of \( y \) and \( n \) for confirmation. \$ \( \boldsymbol{\phi} \) Student Management System v1.0 \( \boldsymbol{*} \) - 1. Add a student - 2. Delete a student - 3. Modify a student - 4. Query a student - 5. Display all students - 6. Exit the system Please Enter the Operation Code: 6
Do you Want to Exit the System? Enter \( Y \) to confirm: II. System Design Students is a list variable which is used to store student records. The first function read_file is responsible for read the welcome.txt file. The next six functions each implements a particular functionality corresponding to one menu item. The start() function is responsible for displaying the welcome page and serving as the entrance point for the project. students read_file(file_name) add_user() del_user0 modify_user0 query_user0 display_user() exit_system0 start0