-
Notifications
You must be signed in to change notification settings - Fork 627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[로또] 정승민 과제 제출합니다. #634
Open
HarenKei
wants to merge
17
commits into
woowacourse-precourse:main
Choose a base branch
from
HarenKei:HarenKei
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[로또] 정승민 과제 제출합니다. #634
Conversation
This file contains 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
구입 금액 입력과 당첨 번호 입력에 대한 테스트 케이스를 작성하였습니다.
입력 함수에서 검증해야 할 입력 조건을 기능 목록에 추가하였습니다.
사용자에게 금액 입력을 받는 함수 getInputPrice, 유효성 검사 함수 checkInputPrice를 구현하였습니다.
당첨 번호를 입력받는 함수 getInputWinnigNumber, 유효성 체크 함수 checkInputWinningnumber, 당첨 번호를 생성하는 makeWinningNumberArray 함수 추가
보너스 번호를 입력 받는 함수 getInputBonusNumber 추가 보너스 번호에 대한 유효성 검사 함수 checkInputBonusNumber 추가
Lotto class에 생성된 로또가 validate를 통과하면 반환하는 makeLotto 함수 구현
당첨번호 입력, 보너스 번호 입력 후 예외 발생시 재입력을 return 사용으로 변경
1장의 로또를 생성하는 makeEachLotto 함수 구현 금액만큼 로또를 생성하는 makeLottoArray 함수 구현
사용자의 입력 금액만큼 생성된 로또를 출력하는 함수 printLottoArray 구현
기존 배열을 출력하던 printEachLotto를 문자열로 변경
로또 결과를 확인하는 함수 checkLotto 각 로또 결과를 확인하는 함수 checkEachLotto 로또 총 상금을 계산하는 함수 calculateAwardPrice, calculateResults를 구현
수익률을 계산하는 기능을 기능 목록에 추가
cacluateResults 함수에 수익률을 계산하는 기능 추가
모든 기능 구현 완료되었으나 테스트 통과하지 못함. 그동안 즐거웠습니다!
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.