依法納稅是每一個(gè)公民應(yīng)盡的義務(wù)。同學(xué)們上網(wǎng)學(xué)習(xí)2018年8月31日第七次修正的《中華人民共和國(guó)個(gè)人所得稅法》,了解居民個(gè)人應(yīng)納稅所得額的含義和個(gè)人所得稅稅率表(綜合所得適用),試設(shè)計(jì)一個(gè)程序計(jì)算以下人員應(yīng)繳個(gè)人所得稅額。
人員 |
A |
B |
C |
D |
E |
全年應(yīng)納稅所得額/元 |
763000 |
550000 |
360000 |
125000 |
35000 |
應(yīng)繳個(gè)人所得稅額/元 |
179200 179200
|
102140 102140
|
56150 56150
|
9950 9950
|
1050 1050
|
def calculator(money):
shui=0
shui1=3600*0.03
shui2=(144000-36000)*0.1
shui3=(300000-144000)*0.2
shui4=(420000-300000)*0.25
shui5=(660000-420000)*0.3
shui6=(960000-660000)*0.35
if money<=36000:
shui=money*0.03
if money>36000 and money<=144000:
shui=(money-36000)*0.1+shui
if money>144000 and money<=300000:
shui=(money-144000)*0.2+shui2+shui1
if money>300000 and money<=420000:
shui=(money-300000)*0.25+shui3+shui2+shui1
if money>420000 and money<=660000:
shui=(money-420000)*0.3+shui4+shui3+shui2+shui1
if money>660000 and money<=960000:
shui=(money-660000)*0.35+shui5+shui4+shui3+shui2+shui1
if money>960000:
shui=(money-960000)*0.45+shui6+shui5+shui4+shui3+shui2+shui1
print(“應(yīng)繳個(gè)人所得稅額為:%.2f元“%shui)
return
money=float(input(“請(qǐng)輸入您的全年應(yīng)繳納稅所得稅總額為(單位為元):“))
calculator(money)