Question: Using Python program Scenario 2 Create a program that will compute the salary of an employee. The program will read the rate per day, and

 Using Python program Scenario 2 Create a program that will compute

Using Python program

Scenario 2 Create a program that will compute the salary of an employee. The program will read the rate per day, and the number of days worked. a. Use function to compute for the salary by multiplying the rate per day and the number of days worked. b. Use a decorator to recompute the salary if the number of days worked is more than 21 and less than or equal to 30, a new computation is to be applied, thus salary is computed as rate per day multiplied to number of days * 1.25, otherwise the entry is already invalid. Display invalid entry if the number of days exceeds 30

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!