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
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
Get step-by-step solutions from verified subject matter experts
