第二题

L=eval(input("请输入所获得的利润(万元)"))
bonus=L
if L<=0:
    print('error')
elif L<=10:
    bonus+=(L*0.1)
elif L>10 and L<=20:
    bonus+=(10*0.1)+(L-10)*0.075
elif L>20 and L<=40:
    bonus+=(10*0.1)+10*0.075+(L-20)*0.05
elif L>40 and L<=60:
    bonus+=(10*0.1)+10*0.075+20*0.05+(L-40)*0.03
elif L>60 and L<=100:
    bonus+=(10*0.1)+10*0.075+20*0.05+20*0.03+(L-60)*0.015
else:
    bonus+=(10*0.1)+10*0.075+20*0.05+20*0.03+40*0.015+(L-100)*0.01
print("今年奖金总额为%.2f万元"%bonus)