Question: Create a function display Tax Rate that will: . Ask the user to enter the income and store it in a variable named income.
Create a function display Tax Rate that will: . Ask the user to enter the income and store it in a variable named income. Using an if/elif statement, read the value of the variable income and display the corresponding tax rate according to the following table: Income $0 to $10,275 $10,276 to $41,775 $41,776 to $89,075. $89,076 to $170,050. $170,051 to $215,950. $215,951 to $539,900. $539,901 or more. TOW UI ar Individual based on the income. Tax Rate 10% 12% 22% 24% 32% 35% 37% 4 Display a menu with the following options: 1- Get Tax Rate, 2-Quit . If the user enters 1, invoke the display Tax Rate function. . If the user enters 2, exit the script. . If the user enters anything else, display an error message. Use a while loop to continue the script until the user select the option to Quit Save the script and make it executable (HINT: use the chmod command with mode 755) . In the body of the script, at the bottom of the file provide code to:
Step by Step Solution
3.33 Rating (156 Votes )
There are 3 Steps involved in it
You can use the following Python script ... View full answer
Get step-by-step solutions from verified subject matter experts
