Reference no: EM132241753
Question:
Tax laws are incredibly complicated. In order to help cope, you will write program to do some of the heavy lifting.
Your program should accept as input the amount of income made by the user in the past year, the marital status of the user (single/married), and the current elevation of the users home address (below/at/above sea level). Your program should produce as output the amount of tax owed for that year.
The process for calculating the amount of tax owed is as follows:
Yearly Income
If the yearly income is less than $10,000, base tax is 2.3% of income
If yearly income is greater than or equal to $10,000 but less than or equal to $50,000, base tax is 4.5% of income
If yearly income is greater than $50,000, base tax is 6.1% of income
Marital Status:
If the user is single, no changes are made
If the user is married, $24.62 is subtracted from the base tax
Current Elevation:
If the user lives below sea level, they are either a fish or a cave person, and processing fees are applied. $18.32 is added to the base tax.
If the user lives at or above sea level, no changes are made remember to submit your source code and a screenshot of your output.