An employee is paid at a rate of $16.78 per hour for regular hours worked in a week. Any hours over that are paid at the overtime rate of 1.5 times that. From the worker's gross pay, 6% is withheld for social security tax, 14% is withheld for federal income tax, 5% is withheld for state income tax, and $10 per week is withheld for union dues. If the worker has three or more dependents, then an additional $35 is withheld to cover the extra cost of health insurance beyond what the employer pays. Write a C++ program that will read in the number of hours worked in a week and the number of dependents as input, and will then output the worker's gross pay, each withholding amount, and the net take-home pay for the week. Your program should allow the calculation to be repeated as often as the user wishes.
Part 1
Like we did for 'Practice 1' in this course note, divide this task into several subtasks. Some of subtasks may be divided into a few sub-subtask.
Note: Could you plz go through this code and let me
know if u need any changes in this.Thank You
=================================
#include <fstream>
#include <iostream>
#include <iomanip>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <vector>
using namespace std;
int main() {
//Declaring variables
int workedHours;
const double payrate=16.78;
const double socialSecurityTax=0.06;
const double federalIncomeTax=0.14;
const double stateIncomeTax=0.05;
const double unionIncomeTax=10;
const double health=35;
int dependents;
double grossPay,sst,fit,sit,uit;
cout<<"Enter No of hours worked :";
cin>>workedHours;
if(workedHours<=40)
{
grossPay=workedHours*payrate;
}
else
{
grossPay=40*payrate+(workedHours-40)*payrate*1.5;
}
sst= grossPay*socialSecurityTax;
fit= grossPay* federalIncomeTax;
sit= grossPay* stateIncomeTax;
grossPay-=(sst+fit+sit+unionIncomeTax);
if(dependents>=3)
{
grossPay=health;
}
cout<<"Social Security
Tax:$"<<sst<<endl;
cout<<"Federal Income
Tax:$"<<fit<<endl;
cout<<"State Income
Tax:$"<<sit<<endl;
cout<<"Gross pay
:$"<<grossPay<<endl;
return 0;
}
==============================
Output:

===========================Thank You
An employee is paid at a rate of $16.78 per hour for regular hours worked in...
An employee is paid at a rate of $16.78 per hour for regular hours worked in a week. Any hours over that are paid at the overtime rate of 1.5 times that. From the worker's gross pay, 6% is withheld for social security tax, 14% is withheld for federal income tax, 5% is withheld for state income tax, and $10 per week is withheld for union dues. If the worker has three or more dependents, then an additional $35 is...
An hourly employee is paid $30/hour for a 40 hour week. Overtime is paid at time-and-a-half for hours worked in excess of 40 hours. In the prior week, the employee worked 48 hours. Federal income taxes of $250 were withheld, and state income taxes of $40 were withheld. FICA taxes of 6.2% (Social Security) and 1.45% (Medicare) were also withheld. What is the weekly gross pay amount or this employee? What is the weekly net pay amount for this employee?
Mike Dooley's regular hourly wage is $16 an hour. He receives overtime pay at the rate of time and a half. The FICA tax rate is 7.65%. Mike is paid weekly. For the first pay period in January, Mike worked 49 hours. All hours over 40 earn the overtime rate. Mike's federal income tax withholding is $150 and his state income tax withholding is $60. Mike has authorized that $25 be withheld from his check each pay period for savings...
3. Anmol An employee earns $40 per hour and 1.5 times that rate for all hours in excess of 40 hours per week. Assume that the employee worked 60 hours during the week, and that the gross pay prior to the current week totaled 558,000. Assume further that the social security tax rate was 7.0% (on earnings up to $100,000), the Medicare tax rate was 1.5%, and the federal income tax to be withheld was $614. Required: (1) Determine the...
Lenny Florita, an unmarried employee, works 47 hours in the week ended January 12. His pay rate is $12 per hour, and his wages have deductions for FICA Social Security, FICA Medicare, and federal income taxes. He claims four withholding allowances. Compute his regular pay, overtime pay (Lenny earns $18 per hour for each hour over 40 per week), and gross pay. Then compute his FICA tax deduction (6.2% for the Social Security portion and 1.45% for the Medicare portion)....
Calculate Payroll An employee earns $24 per hour and 1.5 times that rate for all hours in excess of 40 hours per week. Assume that the employee worked 60 hours during the week, and that the gross pay prior to the current week totaled $34,800. Assume further that the social security tax rate was 6.0%, the Medicare tax rate was 1.5%, and federal income tax to be withheld was $403. a. Determine the gross pay for the week. $ If...
Calculate Payroll An employee earns $36 per hour and 1.75 times that rate for all hours in excess of 40 hours per week. Assume that the employee worked 50 hours during the week, and that the gross pay prior to the current week totaled $52,200. Assume further that the social security tax rate was 6.0%, the Medicare tax rate was 1.5%, and federal income tax to be withheld was $497. a. Determine the gross pay for the week. $ If...
Stephanie Kaur is an employee in Alberta and is paid semi-monthly. Shee worked 82 hours this pay period at his regular rate of $30.50 per hour. She also had 5 hours of overtime and is paid 4% vacation on each cheque. The employer covers the Group Medical by paying a monthly premium of $54.00per pay and a Life Insurance policy costing $34.00 per month. He receives a yearly car allowance of $1,200. Stepahnie contributes $50.00 per pay to her RRSP...
Calculate Payroll An employee earns $28 per hour and 1.75 times that rate for all hours in excess of 40 hours per week. Assume that the employee worked 50 hours during the week. Assume that the social security tax rate was 6.0, the Medicare tax rate was 1.5%, and federal income tax to be withheld was $370.30. a. Determine the gross pay for the week. If applicable, round your final answer to two decimal places. b. Determine the net pay...
Assume that Josh earns $48 per hour and he worked 40 hours this week. The Social Security rate is 6.2% and the Medicare rate is 1.45%, and his entire earnings are subject to both FICA taxes. Also, $240 in income taxes and $80 of union dues are withheld. Josh’s net take-home pay should be a. $1,453.12 b. $1,600.00 c. $1,280.00 d. $1,477.60