Question: Need help with C++ please. Thank you. Write a program named lab2 that calculates and prints monthly paycheck for an employee. The net pay is

Need help with C++ please. Thank you.

Write a program named lab2 that calculates and prints monthly paycheck for an employee. The net pay is calculated after taking the following deductions:

Federal Income Tax: 20% State Tax: 4% Social Security Tax: 3.5% Medicare/Medicaid Tax: 2.75% Pension Plan: 6% Health Insurance: $80.0

Your program should prompt the user to input the gross amount. Format your output to have two decimal places. A sample output follows:

Gross amount: 3587.00

Gross amount: $ 3587.00

Federal Tax:

$ 717.40
State Tax: $ 143.48
Social Security Tax: $ 125.55
Medicare/Medicaid Tax: $ 98.64
Pension Plan: $ 215.22
Health Insurance: $ 80.00
Net Pay: $ 2206.71

Note: The bold letters means the computer displays the output. The normal letters means you enter the input. Net pay = gross amount -(federal tax + state tax + social security tax + Medicare/Medicaid Tax + Pension Plan + Health Insurance)

Hints: You should be able to complete the program with the hints below.

#include #include using namespace std; //Declare all constant variables

int main() { //Declare variables your coding

// Calculate gross amount, federate tax, sale tax, social security, medicare/medicaid tax, pension plan, health insurance and net pay your coding

//Display output

cout<< left << setw(26) << "Gross Amount: " << right << " $" << setw(7) << grossAmount << endl;

Your coding

return 0; }

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!