Question
Write a complete C++ program that calculates the local annual tax for residents in the Lakeland. Input: Annual income of a resident in dollar amount
Write a complete C++ program that calculates the local annual tax for residents in the Lakeland. Input: Annual income of a resident in dollar amount Age of the resident. If the age is 60 or older, this resident is regarded as a senior person. Processing: 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%. 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%. At the end, with tax rate finalized through steps (1) (2), calculate the tax. Output: Display the following items with proper prompt. Tax amount Tax rate Senior discount percentage rate if applied
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started