Question: Using if statements Subject Write a completeC++ program that calculates the local annual tax for residents in the town X 1) Input: (1) Annual income
Subject Write a completeC++ 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 enter 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 zeroThe tax rate for any individal with annual income S100,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) Then apply 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
Get step-by-step solutions from verified subject matter experts
