Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming Logic & Design Comprehensive

Authors: Joyce Farrell

9th edition

978-1337102070

More Books

Students also viewed these Programming questions

Question

c. What are the job responsibilities?

Answered: 1 week ago