A C++ based Point-of-Sale (POS) system for managing product inventory in a convenience store setting. This project was created for an academic course (CSC 2110 - Summer 2025) and demonstrates object-oriented programming concepts such as inheritance, polymorphism, and file I/O.
- Load and manage inventory from a file
- Categorize products (e.g., Soda, Chocolate, Tobacco, LotteryTickets)
- Search products by name, category, or price range
- Add and remove inventory items
- Sell products and calculate total cost
- Handle errors and edge cases (e.g., selling out-of-stock products)
- Apply taxes using inheritance and polymorphism
- C++
- File I/O
- Inheritance & Polymorphism
- Exception handling
- Object-oriented design
- Tobacco - Includes special tax
- LotteryTickets - Includes both city and county taxes
main.cpp: Menu interface and main driverProduct.h/cpp: Base class for productsTobacco.h/cpp: Derived class with special tax logicLotteryTickets.h/cpp: Derived class with dual tax logicInventory.h/cpp: Manages the product list and operationsInventory.txt: Sample inventory file
- Open the project in a C++ IDE (Visual Studio recommended)
- Make sure all
.cppand.hfiles are included - Build and run
main.cpp - Follow the on-screen menu to test each feature
1. Search Inventory
2. Sell Products
3. Add New Inventory
4. Remove Inventory
5. Exit
Author: Sara Al-Hachami
Course:CSC 2110 – Programming Project 3
Term: Winter 2025