Question: Create a module using pseudo code that computes gross pay according to the business rules below. Assume that the employees wage has been inputted into
Create a module using pseudo code that computes gross pay according to the business rules below. Assume that the employees wage has been inputted into a variable called wage, and that the employees hours for the current week has been inputted into a variable call hoursWorked. Both of these values are sent as arguments to the module. The module should display the computed gross pay after calculations are completed. Use the following business rules:
- Base pay is computed as hours worked, up to 40 hours maximum, times the employees hourly wage.
- Overtime is paid for all hours worked above 40. The overtime hours are computed at a rate of 1.5 times the employees regular hourly wage.
- Gross pay is the total of base pay and overtime pay prior to any deductions.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
