Skip to content
Makerson Wheels
Illustrative brief · Foundations

Library issue-and-return system in C++

A console system that stores books and members, handles issues and fines, and searches fast as records grow.

Level
Beginner
Year
1st–2nd year
Indicative duration
3–4 weeks
Team
Individual or pairs

The challenge

A department library tracks issues on paper. Build a console system that stores books and members, handles issues, returns and fines, and searches quickly.

The point is not the menu screens; it is choosing the right data structure for each operation and proving the choice with measurements.

Learning sequence

  1. Phase 1

    Model the domain

    Classes for books, members and loans, with clear ownership and constructors.

  2. Phase 2

    Choose storage

    Hash maps for lookup by ID, a sorted index for title search; write down why.

  3. Phase 3

    Business rules and tests

    Issue limits, due dates and fines, each covered by unit tests including edge cases.

  4. Phase 4

    Measure and explain

    Time searches at 1k, 10k and 100k records and relate the numbers to complexity.

What students hand in

  • C++ source in a Git repository with meaningful commits
  • Unit tests for edge conditions
  • One-page complexity note with measurements

Skills practised

  • OOP in C++
  • Hash maps and ordered maps
  • Unit testing
  • Big-O reasoning

Assessment rubric

Shared with students on day one. Weights are set with the department to match internal assessment.

Assessment rubric for Library issue-and-return system in C++
CriterionWhat good looks like
CorrectnessPasses hidden test cases for issue, return, fines and search.
Data structure choiceEach structure is justified by the operations it serves.
Code qualityReadable names, small functions, steady commit history.
ExplanationCan explain the complexity note without reading from it.

Stretch goals for faster teams

  • Persist records to a file and reload safely
  • Add a reservation queue for popular titles

Run this brief with your students

Opens your email or phone app.