import java.util.Scanner;
public class Lq3
{
public static void main(String args[])
{
double a,b,c;//a是应发工资,b是应缴纳的个税,应发工资-3500。
System.out.println("请输入应发工资:");
Scanner sc = new Scanner(System.in);
double a = sc.nextDouble();
c=a-3500;
if(c<=1500)
{
System.out.println("不用交税:");
}
else if(c<=4500)
{
b=((a-3500))*0.1-105;
System.out.println("应缴纳的个税为:"+b);
}
else if(c<=9000)
{
b=((a-3500))*0.2-555;
System.out.println("应缴纳的个税为:"+b);
}
else if(c<=35000)
{
b=((a-3500))*0.25-1005;
System.out.println("应缴纳的个税为:"+b);
}
else if(c<=55000)
{
b=((a-3500))*0.3-2755;
System.out.println("应缴纳的个税为:"+b);
}
else if(c<=80000)
{
b=((a-3500))*0.35-5505;
System.out.println("应缴纳的个税为:"+b);
}
else
{
b=((a-3500))*0.45-13505;
System.out.println("应缴纳的个税为:"+b);
}
}
}
public class Lq3
{
public static void main(String args[])
{
double a,b,c;//a是应发工资,b是应缴纳的个税,应发工资-3500。
System.out.println("请输入应发工资:");
Scanner sc = new Scanner(System.in);
double a = sc.nextDouble();
c=a-3500;
if(c<=1500)
{
System.out.println("不用交税:");
}
else if(c<=4500)
{
b=((a-3500))*0.1-105;
System.out.println("应缴纳的个税为:"+b);
}
else if(c<=9000)
{
b=((a-3500))*0.2-555;
System.out.println("应缴纳的个税为:"+b);
}
else if(c<=35000)
{
b=((a-3500))*0.25-1005;
System.out.println("应缴纳的个税为:"+b);
}
else if(c<=55000)
{
b=((a-3500))*0.3-2755;
System.out.println("应缴纳的个税为:"+b);
}
else if(c<=80000)
{
b=((a-3500))*0.35-5505;
System.out.println("应缴纳的个税为:"+b);
}
else
{
b=((a-3500))*0.45-13505;
System.out.println("应缴纳的个税为:"+b);
}
}
}