Skip to content

[행성 로또] 주유나 미션제출합니다.#56

Open
YounaJ00 wants to merge 8 commits intowoowacourse-precourse:mainfrom
YounaJ00:YounaJ00
Open

[행성 로또] 주유나 미션제출합니다.#56
YounaJ00 wants to merge 8 commits intowoowacourse-precourse:mainfrom
YounaJ00:YounaJ00

Conversation

@YounaJ00
Copy link

javascript-planetlotto-precourse

행성 로또 기능 목록

입력

  • 구입 금액 입력 받기 (숫자 검증)
  • 당첨 번호 입력 받기 (쉼표 구분 / 5개 / 중복 없음 / 1~30)
  • 보너스 번호 입력 받기 (1~30 / 당첨 번호와 중복 없음)
  • 입력 오류 시 [ERROR] 출력 후 해당 입력부터 재시도

로또 발행

  • 구입 금액 / 500 만큼 로또 발행
  • Random.pickUniqueNumbersInRange(1, 30, 5) 사용
  • 각 로또 번호 오름차순 정렬 출력

당첨 계산

  • 구매 로또와 당첨 번호 비교하여 등수별 카운트 집계
  • 1~5등 기준과 상금 적용

출력

  • n개를 구매했습니다. 출력
  • 각 로또 [x, x, x, x, x] 형태 출력
  • 당첨 통계 헤더 및 구분선 출력
  • 등수별 결과 라인 출력

@YounaJ00 YounaJ00 changed the title [행성 로또] 김희주 미션제출합니다. [행성 로또] 주유나 미션제출합니다. Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments