phones = 0 def menu(): print("1. Add a record") print("2. Lookup a record") print("3. Update a record") print("4. Remove a record") print("5. List all records") print("6. Quit") selection...

phones = 0 def menu(): print("1. Add a record") print("2. Lookup a record") print("3. Update a record") print("4. Remove a record") print("5. List all records") print("6. Quit") selection input("Please make your selection from the options above: ") if(selection -- '1'): addRecord menu if(selection '2'): 7 LookupRecord 8 menu 9 if(selection == '3'): 20 updateRecord 21 menu 22 - if(selection - '4'): 23 removeRecord 24 menu 25 if(selection - '5'): 26 listRecords 27 menu if(selection '6'): 29 exit(0) 30 31 - def addRecord: 32 pass 33 34. def lookupRecordo: 35 pass 36 37. def updateRecord): 38 39 40 - def removeRecord: 41 pass 42 43. def listRecords: pass 45 46 - def maino: 47 print(-- Welcome to the Phonebook App -") 48 menu 28 - pass 49 50 - name main == == Welcome to the Phonebook App 1. Add a record 2. Lookup a record 3. Update a record 3. Remove a record 4. List all records 5. Quit Please make your selection from the options above: 1 Enter the name to add: tyler Enter their phone number: 1111 tyler has been added to the book with number 1111 1. Add a record 2. Lookup a record 3. Update a record 3. Remove a record 4. List all records 5. Quit Please make your selection from the options above: 1 Enter the name to add: tim Enter their phone number: 2222 tim has been added to the book with number 2222 1. Add a record 2. Lookup a record 3. Update a record 3. Remove a record 4. List all records 5. Quit Please make your selection from the options above: 1 Enter the name to add: jim Enter their phone number: 5555 jim has been added to the book with number 5555 1. Add a record 2. Lookup a record 3. Update a record 3. Remove a record 4. List all records 5. Quit Please make your selection from the options above: 4 tyler -> 1111 tim -> 2222 jim -> 5555 1. Add a record 2. Lookup a record 3. Update a record 3. Remove a record 4. List all records 5. Quit Please make your selection from the options above: 5 Thank you for using the phonebook app. >>>
May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here