Step 1: Requirements
Requirements
Questions to Ask
- How many copies per book? (Multiple copies)
- Borrowing limit per member? (5 books at a time)
- Fine calculation? (Per day after due date)
- Reservations for checked-out books? (Yes — queue)
- Search by title, author, ISBN? (All three)
- Member types? (Student, faculty — different borrow limits and due periods)
Functional Requirements
- Add/remove books and manage inventory (multiple copies)
- Register members with different types (student, faculty)
- Borrow and return books
- Calculate overdue fines
- Reserve books that are currently checked out
- Search catalog by title, author, ISBN
- Notify when reserved book becomes available
Non-Functional Requirements
- Fine calculation must be deterministic
- Concurrent borrow/return operations must not corrupt inventory