Giter Club home page Giter Club logo

java-lotto's Introduction

로또

기능 요구사항

Domain

  • 번호를 입력받아 로또 번호 하나를 생성할 수 있다.
  • 로또 1장의 가격은 1000원이다.
  • 로또 번호는 1 이상 45 이하의 수이다.
  • 하나의 로또는 6개의 로또 번호를 가진다.
  • 로또 끼리 비교가 가능하고 몇개가 일치하는지 알 수 있다.
  • 6개의 번호를 가진 로또를 여러개 생성할 수 있다.
  • 6개의 번호를 가진 로또 내 번호는 중복이 없다.
  • 6개의 번호를 가진 로또 번호는 오름차순 정렬이다.
  • 수익률 계산
    • 당첨금 / 생성한 로또 수 X 로또 1장의 가격(1000원)
    • 소수 2자리 까지 출력
  • 5개가 일치하고 보너스 번호까지 같으면 2등이다.
    • 5개만 일치하는 경우 3등
  • 로또가 수동인지 자동인지 구분이 가능하다.

View

  • 구입 금액 입력
  • 당첨 번호 입력
  • 보너스 번호를 입력한다.
  • 구매한 로또 출력
  • 당첨 통계 출력
    • 몇개가 맞았는지 출력
    • 수익률 출력
    • 보너스(2등) 정보도 출력한다.
  • 수동 생성 숫자, 수동 생성 번호 입력
  • 수동, 자동 개수 출력

java-lotto's People

Contributors

nooose avatar javajigi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.