Question: Payroll System: Design a program using Raptor flowchart , that calculate and display each employee's gross pay, income tax withheld, and net pay, based on

Payroll System: Design a program using Raptor flowchart , that calculate and display each employee's gross pay, income tax withheld, and net pay, based on hourlypay rate and hours worked. The program should contain the following modules:

1. CalcGrossPay module that accepts hours worked and hourly rate and returns gross pay. Note, hours worked beyond 40 should be treated as overtime and should be paid 50% more than the regular rate. For example, if hours > 40 the grossPay should be calculated as:

40 * payRate + (hours -40) * 1.5 * payRate

2. CalcIncomeTax module that accepts gross pay and tax rate and returns income tax withheld.

3.CalcNetPay module that accepts gross pay and income tax withheld and returns net pay.

4. Display module that accepts hours worked, hourly pay rate, gross pay, income tax, and net pay, and display the detailed payroll information.

5. Main module that ask user if there is more employee, if yes ask user enter hours worked and hourly pay rate. And then call the aboves modules to calculate and display all pays and taxes.

Note: You may declare and ask user enter tax rate in the main module and pass to module that need them or you may define tax rate as constant, for example 0.2, in main and pass to needed module. The answer has to be in Raptor file.

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 Accounting Questions!