Skip to content
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

[이건우]과제 제출합니다. #1

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Commits on Jun 17, 2024

  1. feat : 책 객체 제목,저자,도서번호,대출가능여부,빌린사람을 속성으로 지정

    메서드로 책을 빌리는 기능과 반납하는 기능을 넣었다.
    leegunwoooo committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    05822ed View commit details
    Browse the repository at this point in the history
  2. feat : 도서관 객체

    도서관에 책을 넣는 기능과 책이 꽉차면 추가하지 못하는 기능, 책을 빌릴때 2권 초과면 대출불가인 기능을 구현
    leegunwoooo committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    fdf153b View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. feat : 이용자 객체

    이용자가 책을 2권을 빌릴 수 있기에 이용자를 선언할 때 빌릴 수 있는 책을 배열로 2권 선언
    borrowBook 메서드는 책을 빌린 권수가 2권보다 적다면 책을 빌리도록 메서드를 만들었다.
    returnBook 메서드는 빌린책과 반납할려는 책이 같다면 반납한 책을 대출 할 수 있도록 바꾸었다.
    leegunwoooo committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    241a6be View commit details
    Browse the repository at this point in the history
  2. feat : 메인함수

    각 조건들을 실행하도록 코드를 짜 도서관 생성, 이용자 생성, 도서 추가, 대출
    초과대출시도,반납,대출, 이미 대출된 도서대출시도, 도서반납,도서대출,
    대출하지 않은 책 반납시다, 전체조회 코드를 짜주었다.
    leegunwoooo committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    321fbd0 View commit details
    Browse the repository at this point in the history