For this program, you have to write your own functions for lists without using any of the build-in functi Create a menu to allow the user to add, insert, remove, find the maximum, the minimum, and sort the li 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.......removeltem(item)

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter17: Linked Lists
Section: Chapter Questions
Problem 18PE
icon
Related questions
Question

Hello! I need help with this code, the language is supposed to be python, and I can't use built in functions. 

For this program, you have to write your own functions for lists 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 .......removeltem(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"]
Transcribed Image Text:For this program, you have to write your own functions for lists 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 .......removeltem(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.
Transcribed Image Text: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.
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Lists
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning