Write a void function that is passed the employee name and the weekly pay and displays it in a neat format with $ and two decimals as shown. This function is called for each employee.

1 answer below »
Write a void function that is passed the employee name and the weekly pay and displays it in a neat format with $ and two decimals as shown. This function is called for each employee.
Answered Same DayMar 07, 2021

Answer To: Write a void function that is passed the employee name and the weekly pay and displays it in a neat...

Deepti answered on Mar 07 2021
138 Votes
'Simple void function that accepts name and salary of an employee and prints them in required format'
def displayEmployee(name,salary)
Print “Employee Name: “, name, “ ,Salary: $”,round(salary,2)
'Below is a refined code with class and function'
'It has two void functions in base Class:...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here