Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'm working on Python task and I need your help Phone Number Management Functions (2 points for each) 1: display 2: search 3: add 4:

I'm working on Python task and I need your help

Phone Number Management Functions (2 points for

each) 1: display 2: search 3: add 4: update 5: delete 0: exit

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Constraint 1: display in the name : phone number format 2: search the phone number for input name. Print not found if there is no name 3: add name and phone number; display all the list 4: update the phone number of the input name with the new input phone number; display all the list 5: delete the phone number of the input name; display all the list 0: exit after saving the changes to the phones.csv file. Print invalid option when the user input a number that does not fall in 0-5 When the program begins, read the initial data from phones.csv file and save the updated information when the program exits.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Display and Search =============================== 1: display 2: search 3: add 4: update 5: delete 0: exit Your choice: 1 Suga : 010-8765-1231 Jin : 010-3452-4567 RM : 010-1123-4321 Jimin : 010-3425-8273 Jungkook : 010-9823-1982 V : 010-1234-1234 J-H : 010-9080-6745 =============================== Phone Number Management Program 1: display 2: search 3: add 4: update 5: delete 0: exit Your choice: 2 name: Jin 010-3452-4567 =============================== 1: display 2: search 3: add 4: update 5: delete 0: exit Your choice: 2 name: GD not found

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Add and Update 1: display 2: search 3: add 4: update 5: delete 0: exit Your choice: 3 name: GD phone number (010-XXXX-XXXX): 010-2342-4123 Suga : 010-8765-1231 Jin : 010-3452-4567 RM : 010-1123-4321 GD : 010-2342-4123 Jimin : 010-3425-8273 Jungkook : 010-9823-1982 V : 010-1234-1234 J-H : 010-9080-6745 1: display 2: search 3: add 4: update 5: delete 0: exit Your choice: 4 name: V phone number (010-XXXX-XXXX): 010-1123-1234 Suga : 010-8765-1231 Jin : 010-3452-4567 RM : 010-1123-4321 GD : 010-2342-4123 Jimin : 010-3425-8273 Jungkook : 010-9823-1982 V : 010-1234-1234 J-H : 010-9080-6745

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Delete and Exit 1: display 2: search 3: add 4: update 5: delete 0: exit Your choice: 5 name: GD Suga : 010-8765-1231 Jin : 010-3452-4567 RM : 010-1123-4321 Jimin : 010-3425-8273 Jungkook : 010-9823-1982 V : 010-1234-1234 J-H : 010-9080-6745 1: display 2: search 3: add 4: update 5: delete 0: exit Your choice: 8 Sorry, you input an invalid option 1: display 2: search 3: add 4: update 5: delete 0: exit Your choice: 0 The program ends after saving the changes

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions

Question

Identify global safety and health issues.

Answered: 1 week ago