Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assignment 1- Selection Constructs 1. Write a python program that will compute the taxes based on the following ranges For single individuals 1. If income
Assignment 1- Selection Constructs
1. Write a python program that will compute the taxes based on the following ranges
For single individuals
1. If income is less than or equal to 8000, the tax is 10% of the income
2. Within range of more than 8000 up to 32000 the tax is 800 plus 15% of the income
over than 8000.
3. If it is more than 32000 the tax is 4400 plus 25% of the income over than 32000
For married
1. If the income is less than or equal to16000, the tax is 10% of the income.
2. Within the range of more than 16000 up to 64000 the tax is 1600 plus 15% of the
amount greater than 16000.
3. If it is more than 64000, the tax is 8800 plus 25% of the amount over than 64000
Specifications:
1. The program will determine if the computation is for married or single by accepting a value from the user.
2. All numbers to be used should be float and results displayed with two decimal points.
3. There should comments for documentation purposes.
4. All variable names should be mnemonic.
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