![]() ![]() |
| |||||||||
| This page removed for FERPA compliance | ||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
def pay(hours,rate):
pay = hours*rate
if pay < 100:
tax = pay*.25
if pay >= 200 and pay <300:
tax = pay*.35
if pay >= 300 and pay <400:
tax = pay*.45
if pay >= 400:
tax = pay*.50
print pay
print pay-tax
| Whether intentional or not, it seems people earning in that tax bracket get a break. But anyways, jREMOVEDt work according to what it says. Your function would then return gross pay and net pay being equal for amounts in the 100-199 range. Student1594 |
Right, so REMOVEDually you compute taxable=grosspay*taxrateand then netpay = grosspay - taxableMark Guzdial |