public static void main(String[] args) {
for(int i=3000;i<20000;i+=100){
suinimei(i);
}
}
static void suinimei(int num){
int x0=0,x1=0,x2=0,x3=0,x4=0,x5=0,x6=0,x7=0;
double y0=0,y1=0.03,y2=0.1,y3=0.2,y4=0.25,y5=0.3,y6=0.35,y7=0.45;
x0 = num;
if(x0>3000){
x1 = x0-3000;
x0=3000;
if(x1>1500){
x2 = x1-1500;
x1 = 1500;
if(x2>3000){
x3 = x2-3000;
x2=3000;
if(x3>4500){
x4 = x3-4500;
x3 = 4500;
if(x4>26000){
x5 = x4 -26000;
x4 = 26000;
if(x5>20000){
x6 = x5-20000;
x5=20000;
if(x6>30000){
x7 = x6-30000;
x6=30000;
}
}
}
}
}
}
}
double r = x1*y1 + x2*y2+ x3*y3+ x4*y4+ x5*y5+ x6*y6+ x7*y7;
System.out.println("收入"+num+" 税"+r +" 百分比"+(((r/num))*100)+"%");
}
算一算个人所得税
最新推荐文章于 2018-09-07 01:21:37 发布