赞
踩
import java.util.Scanner;
public class Test {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("请输入您的工龄和基本工资");
int age= sc.nextInt();
int BaseSalary=sc.nextInt();
int Addsalary=0;
if(age>=15&&age<15)
Addsalary=5000;
else if (age>=5&&age<10)
Addsalary=2500;
else if (age>=3&&age<5)
Addsalary=1000;
else if (age>=1&&age<3)
Addsalary=500;
else if (age>=0&&age<1)
Addsalary=200;
int salary=BaseSalary+Addsalary;
System.out.println("您目前工作了"+age+"年,基本工资为"+BaseSalary+"元,应涨工资"+Addsalary+"元,涨后工资"+ salary+"元.");
}
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。