Question: C++ Write a program named lab2 that calculates and prints monthly paycheck for an employee. The net pay is calculated after taking the following deductions:
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 #include #include using namespace std: //Declare all constant variables int main). //Declare variable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
