Giter Site home page Giter Site logo

oop-metro's Issues

Station은 Gate와 Charger 중 선택할 메뉴를 제공합니다.

🌈 Success criteria

  1. 사용자는 id를 입력합니다.
  2. 사용자는 승차(Gate) 또는 충전(Charger)을 선택합니다.
  3. 승차 선택 시 요금 / 환승 사용법을 안내합니다.
  4. 충전 선택 시 카드 사용법을 안내합니다.

👷To-do

  • run.Station userMenu method 생성

FeeInvoice 클래스 내 요금 계산 메소드 생성

🌈 Success criteria

  1. FeeInvoice 클래스 내에 Gate에서 매개인자를 매개변수로 받아 호출할 수 있는 메소드를 생성한다.

👷To-do

  • 탑승 시 기본 요금과 잔액(or 누적 금액)을 보여주는 메소드 작성
  • 하차 시 추가 요금과 잔액(or 누적 금액)을 보여주는 메소드 작성

Charger는 Card에 따라 충전 메뉴를 제공합니다.

🌈 Success criteria

  1. 사용자가 Station에서 충전을 선택한 경우입니다.
  2. ClimateCard는 고정된 충전 금액(62,000원)을 받고, 유효기간을 입력 받습니다.
  3. DeferredCard는 유효기간을 입력받습니다.
  4. PrepaidCard는 충전 금액을 입력 받습니다.

👷To-do

  • #19
  • Charger 생성

Gate는 메뉴를 제공합니다.

🌈 Success criteria

  1. 사용자의 카드에 잔액이 부족하거나, 유효기간이 만료되었을시 승차를 거부당할 수 있습니다.
  2. 사용자는 승차시 정거장 이동 수를 입력합니다.
  3. 사용자는 환승 여부를 선택합니다.

👷To-do

  • Gate 생성
  • gate.menu() 생성
  • gate.check() 생성

Gate는 사용자가 선택한 값을 FeeInvoice에 전달합니다.

🌈 Success criteria

  1. 사용자가 선택한 승차시 총 정거장 이동 수 (stops), 환승 횟수(transfer), 사용자의 정보(Card 객체)-(나이, 카드 정보(종류, 잔액, 남은 기간 등))를 FeeInvoice에 전달합니다.

👷To-do

  • Gate의 menu 메소드의 매개변수를 Card 객체로 받아오기
  • Gate에서 FeeInvoice의 승차시 반환 메소드를 호출 (파라미터는 Card 객체)

ClimateCard, DeferredCard, PrepaidCard 클래스 생성

🌈 Success criteria

  1. 각 카드에 해당하는 충전 메소드를 생성한다.
  2. ClimateCard의 사용 여부를 확인하는 메소드를 생성한다.

👷To-do

  • 각 카드에 해당하는 필드, 생성자, getter/setter, toString을 생성
  • ClimateCard, DeferredCard, PrepaidCard의 충전 메소드 생성

UserRepository에서 사용자의 정보를 저장합니다.

🌈 Success criteria

  1. UserRepository에서 사용자와 사용자 카드의 정보를 임의로 여러 개 저장합니다.
  2. UserRepository는 Card의 객체 - [userId:int, name:String, age:int, card:String, card:Card]가 있습니다.
  3. userId, name, age, card는 부모 클래스 User에 상속받습니다.
  4. card:Card는 카드의 종류에 따라 저장할 수 있는 객체가 다릅니다.

👷To-do

  • User 생성
  • UserRepository 생성
  • 사용자 임의 정보 저장

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.