Program Python 2 Please 6 Employees Write Program Nested Loops Ask Yearly Salary Employee Q43827832
Program in Python 2 Please !!!!!!!
There are 6 employees. Write a program with nested loops, to askthe yearly salary of each employee for 5 years. Your program shouldkeep track of the highest salary, lowest salary, and calculate theaverage salary of each employee. After you collect each employeesdata, display the highest salary, lowest salary, and average salaryfor that employee.
Hints: The outer loop is used to keep track of employees, andthe inner loop is used to keep track of years for each employee ofthe outer loop. In the test case below, please note that theemployee count and year count keeps changing for input message andoutput messages You can accomplish this by using an input and printstatement like: salary=input(“Please enter employee “+str(empcount) +” salary for year ” + str( yearcount) + “: “)print(“Employee ” + str(empcount) + ” smallest salary is:$”+str(smallest) ) To calculate the average with decimal point, youcan use statement like below. avg=float(totalsal)/5 The abovenstructions are examples. Of course, you must replace the variableswith the variables used in your program.
Expert Answer
Answer to Program in Python 2 Please !!!!!!! There are 6 employees. Write a program with nested loops, to ask the yearly salary of…
OR