Question: C++ 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
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 $ dollars in tax. So your net salary after taxes are taken out is $_ Format your output to two decimal places Assume that the tax brackets in the U.S. are as follows: Tax Rate 6% Salary Under $12,000 $12,001 - $38,000 $38,001 - 55,000 Over $55,000 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
Get step-by-step solutions from verified subject matter experts
