Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program in ( C++ ) that will calculate income tax. You will need as input the persons annual salary. Display a message that

Write a program in (C++ ) that will calculate income tax. You will need as input the persons 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.

image text in transcribed

Modify your program to also factor in state and local taxes, and deductions.

You should assume that state and local taxes (a combined 15%) only have to be paid by individuals who earn more than $38,000.

Additionally, ask the user if they have any children or if they make any student loan payments. 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.

If they do make student loan payments, ask them how much interest they paid on the loan last year, and calculate their new tax amount by subtracting the student loan interest from their pre- tax annual salary.

Salary Under $12,000 $12,001-$38,000 38,001- 55,000 Over $55,000 Tax Rate 5% 27% 33% 39%

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

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions