Question: Program 2 : List Menu operation ( 5 0 Points ) For this program, you have to write your own functions without using any of

Program2: List Menu operation (50 Points)
For this program, you have to write your own functions without using any of the build in functions.
Create a menu to allow the user to add, insert, remove, find the maximum, the minimum, and sort the list in descending order (larger to smaller value). Declare your list as list of string.
studentFullName=["Mike navarro","Miguel saba","Maria Rami"]
You may only use these build in functions len(), index(). Here is an sample output:
1- Add an item to the list ..........addItem(item)
2- Remove item from the list .......removeItem(item)
3- Insert an item to the list .....insertToList(item, index)
4- Find maximum ....findMax(list)
5- Find Minimum ....findMax(list)
6- Sort the list in descending order .....sortList(list)
7- Display the list.... displayList(list)
8- Quit the program .....exit()
Please enter your option: 3
Where do you want to insert the item? (Enter the index number)1
Please enter the value for the item you want to insert: "Tina Mari"
Your program should call the function insertToList(item, index)
Your original List : ["Mike navarro","Miguel saba","Maria Rami"]
After inserting an item into index 1:
["Mike navarro","Tina Mari", "Miguel saba","Maria Rami"]
Once the user enters an option, your program should execute the code for that option and displays the list before and after the operations. Make sure to use a while loop so the program runs until user enters the quit option.

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 Programming Questions!