# 이번달 월급은?
## 문제
바리스타를 꿈꾸는 김바리 학생은 이번달 초부터 별다방에서 일하기로 하였습니다. 근무 계약 조건은 월급제로 기본시급과 일한시간을 곱하여 계산한다고 하네요.
시급과 일한 시간을 `main()`의 입력값으로 받아, 총 급여를 계산하여 출력해주세요.
+ 총 급여(pay) = 시급(basePay) X 일한시간(workingHours)
## 입력 예
시급, 일한시간 순 입력
```
8000 160
```
## 출력 예
```
1280000
```
## 힌트
+ 자바 main() 메소드의 입력값 (https://goo.gl/S1bpHP)
---
## 따라하기
### Step 1: 변수 생성
```
public class Salary {
public static void main(String[] args) {
int basePay; // 시급
int workingHours; // 일한 시간
System.out.println(basePay);
System.out.println(workingHours);
}
}
```
### Step 2: 입력 값 대입
```
public class Salary {
public static void main(String[] args) {
// 입력값 대입
int basePay = Integer.parseInt(args[0]); // 시급
int workingHours= Integer.parseInt(args[1]); // 일한 시간
System.out.println(basePay);
System.out.println(workingHours);
}
}
```
### Step 3: 계산 및 출력
```
public class Salary {
public static void main(String[] args) {
// 입력값 대입
int basePay = Integer.parseInt(args[0]); // 시급
int workingHours= Integer.parseInt(args[1]); // 일한 시간
// 월급 계산
int salary = basePay * workingHours;
// 출력
System.out.println(salary);
}
}
```