Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Payroll System: Design a program that calculate and display each employee's gross pay, income tax withheld, and net pay, based on hourly pay rate and

Payroll System: Design a program that calculate and display each employee's gross pay, income tax withheld, and net pay, based on hourly pay rate and hours worked. The program should contain the following modules: (100 points)

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.

It must be solved using raptor flowchart ONLY. No other programming language can be used.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions