Question: Program 1 : LISTS & FUNCTIONS ( Include flowchart ) For this program, you have to write your own functions without using any of the
Program: 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:
employeesMike navarro","Miguel saba","Maria Rami"
salaries
Add a new Employee
Remove an Employee
Insert new Employee
Search for an employee
find total salary
Display the list of employees
Quit the program exit
Here is more details for every function
Add a new Employee addEmployeeemployee salary
Remove an Employee removeEmployeeemployee salary
Insert an Employee into a specific location.....insertNewEmployeeemployee index, salary
Search function for an employee searchEmployeeemployee will return the index and the salary
find total salary totalSalarysalaries
Display the list.... displayListemployees salaries
Quit the program exit
Please enter your option:
Where do you want to insert the item? Enter the index number
Please enter the employee name you want to insert: "Tina Mari"
Please enter the employee salary you want to insert:
Your program should call the function insertNewEmployeeemployee index, salary
Your original Lists:
employees Mike navarro","Miguel saba","Maria Rami"
salaries
After inserting an item into index :
employees Mike navarro","Tina Mari", "Miguel saba","Maria Rami"
salaries
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
