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:

  1. Base pay is computed as hours worked, up to 40 hours maximum, times the employees hourly wage.
  2. 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.
  3. 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

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!