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)
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)
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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"]](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F5d269963-f382-468b-8aea-44bab3b55e03%2F4c909783-6c40-498e-91b5-41967a679042%2F9wv4jd_processed.png&w=3840&q=75)
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"]

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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 2 images

Knowledge Booster
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.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education