import java.util.Scanner;
public class Tax{
public static void main(String[] args){
int tax_commission = 1500;
Scanner input = new Scanner(system.in);
System.out.print("What do you do for your living? : ");
String job = input.nextString();
System.out.print("How much you get paid per month? : ");
int salary = input.nextInt();
System.out.println("Since your job is " + job + " and get paid like " + salary +" this much, the tax you have pay for this year is : " + (commission + salary * 0.13) );
}
}
'Study > Java Programming' 카테고리의 다른 글
Java String Instance Practice Example #1 (0) | 2019.04.28 |
---|---|
Java Usage ArrayList Example #1 (0) | 2019.04.28 |
Java Programming Practice #1 (0) | 2018.10.06 |
[Java Programming] Java return, 자바 리턴값 배우기 (0) | 2018.09.09 |
[Java Programming] Java Method 자바 메소드 배우기 (0) | 2018.09.09 |