public class Test020610
{
public static void main(String[] args){
java.util.Scanner s = new java.util.Scanner(System.in);
System.out.print("请输入您的税前收入:");
double pretaxIncome = s.nextDouble();
double countTax;
double taxPayable;
countTax = pretaxIncome - 3500 - 262;
double a = 0;
double b = 0;
if(countTax < 0){
}else if(countTax <= 1500){
a = countTax * 0.03 - 0;
}else if(countTax <= 4500){
a = countTax * 0.1 - 105;
}else if(countTax <= 9000){
a = countTax * 0.2 - 555;
}else if(countTax <= 35000){
a = countTax * 0.25 - 1005;
}else if(countTax <= 55000){
a = countTax * 0.3 - 2755;
}else if(countTax <= 80000){
a = countTax * 0.35 - 5505;
}else{
a = countTax * 0.45 -13505;
}
b = pretaxIncome - a -262;
System.out.println("您应缴税款" + a);
System.out.println("您的实际收入为" + b);
}
}
学习记录分享
最新推荐文章于 2024-08-22 21:24:01 发布