Giter Club home page Giter Club logo

ios-bank-manager's People

Contributors

yagom avatar yanghojoon avatar ye-ha avatar

ios-bank-manager's Issues

UI 구현하기

  • 고객 정보를 표현할 커스텀뷰를 구현합니다
    • 뷰에 포함될 정보 : 고객번호, 업무종류
  • 대기열은 스택뷰를 활용합니다 (화면 전체를 여러개의 중첩된 스택뷰)
  • 화면 구성
    • 업무중인 고객 리스트
    • 대기중인 고객 리스트
    • 업무시간 타이머
      • (모든 업무가 끝나고 대기중인 고객이 없으면 업무시간 타이머는 멈춥니다)
      • 고객이 추가되어 다시 업무를 처리하면 타이머가 동작, 초기화 하기 전까지 업무시간은 초기화하지 않고 누적합니다
    • 고객 10명 추가 버튼
      • 고객 10명 추가
    • 초기화 버튼
      • (대기중인 고객과 타이머 모두 초기화)

타입 구현

  • 은행원은 고객의 업무를 처리 (한 번에 처리할 수 있는 고객은 한 명)

    • 업무 시작 시 “_번 고객 업무 시작”
    • 업무 처리에는 0.7초가 걸림
    • 업무 처리 시 “_번 고객 업무 완료”
  • 은행은 모든 고객의 업무가 끝나면 마감

    • 업무 마감 시 "업무가 마감되었습니다. 오늘 업무를 처리한 고객은 총 XX명이며, 총 업무시간은 XX초입니다."
    • 총 고객 수와 총 업무 시간을 알고 있기

콘솔앱 구현

  • 실행 시 아래 메뉴 출력
    1 : 은행 개점
    2 : 종료
    입력 :

  • 사용자가 1 입력 -> 10~30명 고객 방문

  • 사용자가 2 입력 -> 프로그램 종료

Step1 리팩터링

  • if else문을 guard문으로 변경
  • return 생략한 부분 수정
  • 테스트 케이스 추가
  • 변경된 링크드리스트 메서드에 맞추어 테스트 케이스 네이밍 수정
  • dequeue 값을 반환하도록 수정
  • 테스트 케이스 개행 수정

다중처리

  • 예금 2명, 대출 1명으로 task를 처리할 수 있도록 구현
    • 은행원 3명이 고객의 업무를 처리할 수 있도록 구현

Queue 타입 구현

Queue 타입 구현

  • Linked-list 타입을 직접 구현

Queue 기능 구현

  • Enqueue
  • Dequeue
  • Clear
  • Peek
  • isEmpty

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.