Open
Conversation
- 구입 금액을 입력받고 검증하는 기능 추가 - 검증 로직 분리 - 예외 발생 시 [ERROR] 메시지 출력 및 재입력 처리
- 구입 금액에 따라 구매한 로또 개수를 계산 - "n개를 구매했습니다." 형식으로 개수 출력
- LottoGenerator 클래스 : 로또 번호 생성 - Randoms를 이용해 번호 생성 후 오름차순 정렬 - Lotto 클래스에 중복 번호 검증 추가 - 생성된 로또 목록 출력
- 쉼표로 구분된 6개의 당첨 번호 입력 - 입력값 검증 - 검증 실패 시 [ERROR] 메시지 출력 및 재입력 처리
- 보너스 번호 1개 입력 - 입력값 검증 - 당첨 번호와 보너스 번호 간 중복 검증 - 검증 실패 시 [ERROR] 메시지 출력 및 재입력 처리
- LottoRank Enum을 생성하여 당첨 기준과 상금 관리 - 총 당첨금 및 총 수익률 계산 기능 구현
- '당첨 통계' 헤더 및 등수별 당첨 내역 출력
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.