Question
Write a C++ program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions: Federal
Write a C++ program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions:
Federal Income Tax: 15%
State Tax: 3.5%
Social Security Tax:5.75%
Medicare/Medicaid Tax: 2.75%
Pension Plan: 5%
Health Insurance: $75.00
The program should prompt the user to input the gross amount (of salary) and the employee name.
Format your output on the screen to have two decimal places.
Hint you can use setw and seoretision in order to solve this problem.
Sample input/output: Enter employee name: Mr.Ahmad Enter gross amount: 23560 Mr.Ahmad Gross Anount: $23560.00 Federal Tax: $3534.00 State Tax: Social Security Tax: Medicare Medicaid Tax: Pension Plan : Health Insurance: Net Pay: 824.60 1354.70 647.90 1178.00 25.00 $15945.80
Step by Step Solution
3.55 Rating (152 Votes )
There are 3 Steps involved in it
Step: 1
include include usingnamespace std int main double gross string name cout Enter employee name scan t...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Programming Logic & Design Comprehensive
Authors: Joyce Farrell
9th edition
978-1337102070
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App