Question: Program 2 : List Menu operation ( 5 0 Points ) For this program, you have to write your own functions without using any of
Program: List Menu operation 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.
studentFullNameMike navarro","Miguel saba","Maria Rami"
You may only use these build in functions len index Here is an sample output:
Add an item to the list addItemitem
Remove item from the list removeItemitem
Insert an item to the list insertToListitem index
Find maximum findMaxlist
Find Minimum findMaxlist
Sort the list in descending order sortListlist
Display the list.... displayListlist
Quit the program exit
Please enter your option:
Where do you want to insert the item? Enter the index number
Please enter the value for the item you want to insert: "Tina Mari"
Your program should call the function insertToListitem index
Your original List : Mike navarro","Miguel saba","Maria Rami"
After inserting an item into index :
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
