Question: Using C++, write a payroll program that will determine and report the amount of (1) the gross pay, (2) the union due, and (3) the
Using C++, write a payroll program that will determine and report the amount of (1) the gross pay, (2) the union due, and (3) the net pay respectively for the hourly worker after the worker provides the information of the number of work hours, the hourly rate, and the age.
Your company pays its hourly workers once a week. When there are no more than 40 work hours, an hourly workers gross pay is simply his/her work hours multiplied by his/her regular hourly pay rate. However, when there are more than 40 work hours,each additionalwork hour after the first 40 work hours of the week is paid at an overtime rate that is 1.5 times of the regular hourly rate (while the first 40 hours are still paid by the regular hourly rate).
An hourly worker who earns less than $200.0 a week pays $0.0 for the union due. An hourly worker who earns $200.0 or more a week must pay either $5.0 or $15.0 for the union due, which is deducted from his/her gross pay. For an hourly worker who earns $200.0 or more a week, if the employee is less than 60 years old, the union dues are $15.0 per week; otherwise the union dues are $5.0 per week.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
