Write a program that calculates and prints the monthlypaycheck for an employee.
ID: 3613813 • Letter: W
Question
Write a program that calculates and prints the monthlypaycheck for an employee. The net pay is calculated after takingthe 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 Your program should prompt the user to input the gross amountand the gross employee name. The output will be stored in afile. Format your output to have two decimal places. A sampleoutput follows: Bill Robinson Gross Amount: ........................$3575.00 Federal Tax : ...........................$ 536.25 StateTax: ..............................$ 125.13 Social Security Tax:.................$ 205.56 Medicare/Medicaid Tax:.........$ 98.31 Pension Plan: ..........................$ 178.75 Health Insurance:.....................$ 75.00 Note that the left column is left-justified, and the rightcolumn is right-justified. Write a program that calculates and prints the monthlypaycheck for an employee. The net pay is calculated after takingthe 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 Your program should prompt the user to input the gross amountand the gross employee name. The output will be stored in afile. Format your output to have two decimal places. A sampleoutput follows: Bill Robinson Gross Amount: ........................$3575.00 Federal Tax : ...........................$ 536.25 StateTax: ..............................$ 125.13 Social Security Tax:.................$ 205.56 Medicare/Medicaid Tax:.........$ 98.31 Pension Plan: ..........................$ 178.75 Health Insurance:.....................$ 75.00 Note that the left column is left-justified, and the rightcolumn is right-justified.Explanation / Answer
please rate - thanks #include #include using namespace std; int main() { double pay, fed,state,ss,med,pen,health,salary; string name; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.