# 연아의 쇼핑 목록
## 문제
대박 쇼핑몰은 총 구매 금액에 따른 특별 할인 행사를 시작했다. 내용은 다음과 같다.
+ 30만원 미만 => 할인 없음
+ 30만원 이상 => 5% 할인
+ 50만원 이상 => 12% 할인
+ 70만원 이상 => 15% 할인
+ 100만원 이상 => 20% 할인
연아는 이 기회를 놓칠 수 없어, 희망 구매 목록을 이름, 단가, 수량 순으로 정리하였다.
`입력 예`에 적힌 목록의 견적을 출력하시오.
## 입력 예
```
햅쌀10kg 31960 2
로봇청소기 287000 1
LA갈비1팩 9610 8
식기세척기 450000 1
```
## 출력 예
```
예상 견적: 702240원
```
## 뼈대코드
```
import java.util.LinkedList;
public class KingShoppingMall {
public static void main(String[] args) {
LinkedList<Goods> goodsList = new LinkedList<Goods>();
// input
for (int row = 0; row < 4; row++) {
String name = args[3 * row + 0];
int price = Integer.parseInt(args[3 * row + 1]);
int quantity = Integer.parseInt(args[3 * row + 2]);
goodsList.add(new Goods(name, price, quantity));
}
// calc
int sum = 0;
for (Goods goods : goodsList) {
sum += goods.normalPrice();
}
int quotation = discounted(sum);
// print
System.out.printf("예상 견적: %d원\n", quotation);
}
public static int discounted(int price) {
/* 할인 금액을 적용시키시오. */
return price;
}
}
class Goods {
private String name;
private int price;
private int quantity;
public Goods(String name, int price, int quantity) {
this.name = name;
this.price = price;
this.quantity = quantity;
}
public int normalPrice() {
return price * quantity;
}
}
```