package C; import java.util.*; public class Jiangjin { public static void main(String[] args) { System.out.println("输入当月利润:"); Scanner a=new Scanner(System.in); double m=a.nextDouble(); if(m>=0&&m<=100000.0) { System.out.println("应发放奖金: "+(m*0.1)+" 元"); } else if(m>100000.0&&m<=200000.0) { System.out.println("应发放奖金: "+((m-100000)*0.075+100000*0.1)+" 元"); } else if(m>200000.0&&m<=400000.0) { System.out.println("应发放奖金: "+((m-200000)*0.05+100000*0.075+100000*0.1)+" 元"); } else if(m>400000.0&&m<=600000.0) { System.out.println("应发放奖金: "+((m-400000)*0.03+200000*0.05+100000*0.075+100000*0.1)+" 元"); } else if(m>600000.0&&m<=1000000.0) { System.out.println("应发放奖金: "+((m-600000)*0.015+200000*0.03+200000*0.05+100000*0.075+100000*0.1)+" 元"); } else if(m>1000000.0) { System.out.println("应发放奖金: "+((m-1000000)*0.01+400000*0.015+200000*0.03+200000*0.05+100000*0.075+100000*0.1)+" 元"); } else { System.out.println(" 输入错误! "); } } }