Question: A common task while writing software is to display a menu and ask the user for a choice: Select your choice from the following menu:

A common task while writing software is to display a menu and ask the user for a choice:

Select your choice from the following menu:

1. Search for a contact

2. Edit a contact

3. Add a contact

4. Delete a contact

5. Quit

Use python 3.7 to

(1) Write a function called displaymenu that displays a menu to the user (use the above as a guide) and allows the user to make a choice (using input). The function should return that choice to the calling function (you can use main() as the calling function).

(2) write a main function that takes a choice from the user and makes the calls to the other functions that correspond to the operation to be performed. (Give meaningful names to these functions. You do NOT have to write the other function definitions.)

I would greatly appreciated if you could help me, a beginner learning with python!

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!