Question: Write a Python program that performs the following tasks: 1 . Define a function to ask for and return the number of employees in a

Write a Python program that performs the following tasks:
1. Define a function to ask for and return the number of employees in a company.
2. Define a function to ask for and return a set of employee names and salary values (2 lists
as its parameters). The function will also have the number of employees as its parameter.
3. Define a function to accept as its parameter, the list of employee names and employee
salaries. The function returns the lowest salary along with the name of the employee
with the lowest salary.
4. Define a function to accept as its parameter, the employee salaries and the number of
employees, and return the median of the salary. For an example of how to find the
median of a set of numbers, see the notes in class and the notes at the end of this
document. Remember that we need to sort the data before finding the median.
5. Define a function to display the original salaries, sorted salaries from the lowest to
highest, the lowest salary and the corresponding employee name, and the median salary.
6. Define a main function to call each of these functions to perform the required
operations

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 Programming Questions!