Question: Create a Python program that will calculate the users net pay based on the tax bracket he/she is in. Your program will prompt the user
Create a Python program that will calculate the users net pay based on the tax bracket he/she is in. Your program will prompt the user for their first name, last name, their monthly gross pay, and the number of dependents.
The number of dependents will determine which tax bracket the user ends up in. The tax bracket is as followed:
-
0 1 Dependents : Tax = 20%
-
2 3 Dependents : Tax = 15%
-
4+ Dependents : Tax = 10%
After calculating the net pay, print the name of the user, the monthly gross pay, the number of dependents, the gross pay, the tax rate, and the net pay.
The formula to compute the net pay is: monthly gross pay (monthly gross pay * tax tax rate)
Submit your solution on blackboard.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
