Question: Please provide the solution in Python3 in Jupyter notebook for the following question. Kindly follow the instructions given under Notes while solving the question. Question4:
Please provide the solution in Python3 in Jupyter notebook for the following question.
Kindly follow the instructions given under Notes while solving the question.
Question4: Tax Class Write a class named 'Tax' to calculate the state tax (in dollars) of Employees at Texas Tech University based on their annual salary. The state tax is 16% if the annual salary is below 80,000 dollars and 22% if the salary is more than 80,000 dollars. Taxt = Annualsalary x State tar% Employee Annual salary (dollars) Bob 1,50,000 Mary 78.000 John 55,000 Danny 1,75,000 Notes: 1. Use docstrings to describe the purpose of the class. 2. Use if....else conditional statements within the method of the class to choose the relevant tax % based on the annual salary. 3. Create an object for employee and display the output as shown below. Bob's tax amount (in dollars): AMOUNT Mary's tax amount (in dollars): AMOUNT John's tax amount (in dollars): AMOUNT Danny's tax amount (in dollars): AMOUNT In [ ]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
