Question: Write a c++ program to create a payroll based on these assumptions and requirements: A company called Data Housing Corp. employs a number of employees

Write a c++ program to create a payroll based on these assumptions and requirements:

A company called Data Housing Corp. employs a number of employees (say 5) all employees are paid on hourly base, any employee who works more than 40 hours is entitled to be paid overtime (1.5 for every hour exceeding 40).

Calculate : 1. The Gross income=(Rate*hours worked )+ overtime 2. The overtime= No. of hours exceeding 40 * Rate *1.5 3. State tax= gross*6% 4.Federal tax=gross*12% 5. Union fees= gross*2% 6. Net= Gross-(State Tax+Federal tax +Union fees) 7. Total Gross for all employees. 8. Average gross

Directions:

MUST USE:

a) Arrays

b) MUST use functions

-Your input consists of Employee First Name, Middle Initial, Last name, hours worked, rate per hour

-State tax, fed tax and union fees are constansts

-Your FORMATTED output includes all input information and all calculated information such as (gross, net, etc)

-Apply (whatever is applicable): Loops, constants, data validation, if, else, switch, arrays, precision

-input validation (hours greater than 0 and less than 60, rate greater than 0 and less than 50)

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!