Question: Program 1 : LISTS & FUNCTIONS ( Include flowchart ) For this program, you have to write your own functions without using any of the

Program1: LISTS & FUNCTIONS (Include flowchart)
For this program, you have to write your own functions without using any of the build in functions.
You may only use these build in functions len(), index(). Here is an sample output:
Create a menu to allow the user to add, insert, remove, find the maximum score, the minimum score, and sort the list in descending order (larger to smaller value).
These are your lists:
employees=["Mike navarro","Miguel saba","Maria Rami"]
salaries=[20000.00,30000.00,40000.00]
1- Add a new Employee
2- Remove an Employee
3- Insert new Employee
4- Search for an employee
5- find total salary
6- Display the list of employees
7- Quit the program .....exit()
===========================Here is more details for every function================
1- Add a new Employee ..........addEmployee(employee, salary)
2- Remove an Employee .......removeEmployee(employee, salary)
3- Insert an Employee into a specific location.....insertNewEmployee(employee, index, salary)
4- Search function for an employee ....searchEmployee(employee)--> will return the index and the salary
5- find total salary ... totalSalary(salaries )
6- Display the list.... displayList(employees, salaries)
7- 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 employee name you want to insert: "Tina Mari"
Please enter the employee salary you want to insert: 65000.00
Your program should call the function insertNewEmployee(employee, index, salary)
Your original Lists:
employees =["Mike navarro","Miguel saba","Maria Rami"]
salaries=[20000.00,30000.00,40000.00]
After inserting an item into index 1:
employees =["Mike navarro","Tina Mari", "Miguel saba","Maria Rami"]
salaries=[20000.00,65000.00,30000.00,40000.00]
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 Databases Questions!