Intermediate level · Module 6 of 6 · 17 guided hours
Intermediate C++ Project
Build the Pharmacy Stock Manager from design to tested, sanitizer-clean CMake project and present it.
Learning objectives
- Design a multi-file C++ application with clear class responsibilities
- Implement and check the stock rules
- Review, finish and present the project
Topics
- class design
- stock and expiry rules with std::chrono dates
- CSV persistence
- assert-based checks or a test framework
- code review
- presentation
Lessons
-
Lesson 1 Designing the Stock Manager
Plan classes, files and rules for the pharmacy application before writing code.
class responsibilitiesheader layoutrule specificationdate handling
-
Lesson 2 Implementing Rules and Persistence
Implement the inventory rules and CSV persistence, checking each rule as it is written.
first-expiry-first-outrule checks with assertround-trip save/loaderror reporting
-
Lesson 3 Review and Presentation
Review code with a partner, finish the project and present it with a sanitizer-clean demonstration.
code review checklistconst correctness reviewsanitizer runpresentation
Practical activity
Build the level project in three reviewed stages: design and skeleton, features and persistence, checks and presentation.
Expected outcomes
- A complete multi-file C++ application
- Experience of reviewing C++ code
Assessment
The level project assessed against its criteria, including a sanitizer run during the demonstration.
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.