Skip to content

hyuyeon/VehicleRentByCommand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vehicle Rent By Command System

해당 프로젝트는 command line 기반으로 차량을 예약할 수 있는 시스템을 구현한 Java 프로그램입니다. 차량 예약, 예약 취소, 대여, 반납 기능을 제공하며 예약 가능한 차량 목록, 대여 중인 차량 목록, 총 수익 등을 조회할 수 있습니다.

주요 클래스

Vehicle 클래스

  • 필드:

    • ID
    • 세부정보(cc, hp, ton)
    • 차종
  • 차량 리스트 파일을 입력할 때 객체들이 생성됩니다.

RentReceipt 클래스

  • 필드:

    • Vehicle 객체
    • Person 객체
    • 대여날짜 (Date 객체)
    • 반납날짜 (Date 객체)
    • 요금
    • 대여기간
    • 대여여부 (boolean)
    • 반납여부 (boolean)
    • 대여차량의 ID
  • 예약에 성공하는 경우 생성되는 영수증 객체입니다. 대여여부와 반납여부 변수를 통해 영수증의 상태(예약 중, 대여 중, 반납 완료)를 나타낼 수 있습니다. (반납 완료된 영수증 객체도 총 수익 조회 기능에서 사용되기 때문에 삭제되지 않아야함)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages