Question: For python DESCRIPTION Define a Python function named calculate_tax) which accepts one parameter, income, and returns the income tax. Income is taxed according to the

For python
 For python DESCRIPTION Define a Python function named calculate_tax) which accepts

DESCRIPTION Define a Python function named calculate_tax) which accepts one parameter, income, and returns the income tax. Income is taxed according to the following rule: the first $250,000 is taxed at 40% and any remaining income is taxed at 80%. For example, calculate tax(100000) should return $100,000 * 0.40 = $40,000, while calculate_tax(300000) should return $250,000 * 0.40 + 50,000 * 0.80 = $140,000 In your file, you should include a main) that calls your function several times to demonstrate that it works

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!