Question: 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

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!