import java.util.Scanner;
public class Main {
public static int wage(int a){
if(a<=100000)
return (int) (a*0.1);
else if(100000<a&&a<=200000)
return (int) (100000*0.1+(a-100000)*0.075);
else if(200000<a&&a<=400000)
return (int) (100000*0.1+100000*0.075+(a-200000)*0.05);
else if(400000<a&&a<=600000)
return (int) (100000*0.1+100000*0.075+200000*0.05+(a-40000)*0.03);
else if(600000<a&&a<=1000000)
return (int) (100000*0.1+100000*0.075+200000*0.05+40000*0.03+(a-60000)*0.015);
else
return (int) (100000*0.1+100000*0.075+200000*0.05+40000*0.03+60000*0.015+(a-1000000)*0.01);
}
public static void main(String[] arg){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
System.out.print(wage(a));
}
}
∥by:^小呆萌^
0.0分
0 人评分
淘淘的名单 (C语言代码)答案错误???浏览:623 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:552 |
WU-小九九 (C++代码)浏览:1713 |
DNA (C语言描述,数据结构)浏览:909 |
C语言程序设计教程(第三版)课后习题6.2 (C语言代码)浏览:751 |
C语言程序设计教程(第三版)课后习题6.9 (C语言代码)浏览:760 |
1025题解浏览:796 |
A+B for Input-Output Practice (VII) (C语言代码)浏览:566 |
复数求和 (C语言代码)浏览:994 |
数组输出 (C语言代码)浏览:749 |