Question: Write a complete C++ program that calculates the local annual tax for residents in the town X. 1) Input: (1)Annual income of a resident in

Write a complete C++ program that calculates the local annual tax for residents in the town X.

1) Input:

(1)Annual income of a resident in dollar amount

(2)Age of the resident. If the age is 60 or older, this resident is regarded as a senior person.

(3)The resident's status of active military service, it can be entered with letter 'Y' or 'N'. The character type (keyword char) can be used to save the value.

2) Processing:

(1)The tax rate for any individual with annual income $50,000 or less is zero. The tax rate for any individual with annual income $100,000 or less but more than $50,000 is 7%. Other people will have the tax rate of 9%.

(2)Second, determine the senior discount. If a resident has a non-zero tax rate after Step (1) and is also a senior, his/her tax rate shall be reduced by 3%.

(3)The napply the active service discount. If a resident has a non-zero tax rate after Step (2) and is in active service, his/her tax rate shall be further reduced by 2%.

(4)At the end,with tax rate finalized through steps (1) (3), calculate the tax.

3) Output: Display the following items with proper prompt.

(1)Tax amount

(2)Tax rate

(3)Senior discount percentage rate if applied

(4)Active service discount percentage rate if applied

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!