i=float(input("请输入当月利润:"))
p=0
if i <= 10:
p = i*0.12
print("应发放奖金总数为 %0.2f万元"%p)
elif i>10 and i<20:
p = 10 *0.12+(i-10)*0.085
print("应发放奖金总数为 %0.2f万元:"%p)
elif i>=20 and i<40:
p=10*0.12+(i-10)*0.085+(i-20)*0.06
print("应发放奖金总数为 %0.2f 万元:"%p)
elif i>=40 and i<60:
p = 10*0.12+(i-10)*0.085+(i-20)*0.06+(i-40)*0.03
print("应发放奖金总数为 %0.2f 万元:"%p)
elif i>=60 and i<100:
p =10 * 0.12+(i-10)*0.085+(i-20)*0.06+(i-40)*0.03+(i-60)*0.015
print("应发放奖金总数为 %0.2f 万元:"%p)
elif i>=100:
p=110*0.12+(i-10)*0.085+(i-20)*0.06+(i-40)*0.03+(i-60)*0.015+(i-100)*0.01
print("应发放奖金总数为 %0.2f 万元:"%p)
求发放的奖金总数
于 2022-03-28 11:42:12 首次发布