Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ using IF Statements only! Please make it simple code! Exercise #2: Write a program for the IRS that will calculate income tax. You will

image text in transcribed

C++ using IF Statements only! Please make it simple code!

Exercise #2: Write a program for the IRS that will calculate income tax. You will need as input the person's annual salary. Display a message that says: This year you paid $ tax. So your net salary after taxes are taken out is $ Format your output to two decimal places. dollars in Assume that the tax brackets in the U.S. are as follows: Salary Under $12,000 $12,001 - $38,000 $38,001-55,000 Over $55,000 Tax Rate 6% 27% 33% 39% Extra Credit Modify your program to factor in deductions. Ask the user if he/she has any children If they do have children, ask them how many, and calculate their new tax amount factoring in a 5% deduction per child off their pre-tax annual salary Ask the user if he/she makes student loan payments, ask how much interest was paid on the loan last year, and calculate their new tax amount by subtracting the student loan interest from the pre-tax annual salary (after child deduction)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions

Question

What did they do? What did they say?

Answered: 1 week ago

Question

2. Do you find change a. invigorating? b. stressful? _______

Answered: 1 week ago