How 2602003/inf1103-labs works
This repository is a set of small, standalone Python exercises rather than one integrated application. The main workflows are inventory auditing by entering quantities and reporting totals, persistent order entry with file-backed history and a final audit report, and JSON inventory management for adding, finding, updating, displaying, and saving products. hello.py is a separate profile-input exercise. The files do not import or invoke one another; relationships shown are only within each script. inventory.json is the inventory manager's data file.
Main entry points: persistent_auditor.py Persistent order auditor · inventory_manager.py Inventory manager · auditor.py Quantity auditor · modular_auditor.py Modular auditor
Components 8
Auditing exercises
- Quantity auditor
auditor.py - Modular auditor
modular_auditor.py
Persistent orders
- Persistent order auditor
persistent_auditor.py - Order history
persistent_auditor.py
Inventory manager
- Inventory manager
inventory_manager.py - Inventory data
inventory.json
Profile exercise
- Profile exercise
hello.py
Other components
- User
Connections 7
- User → Quantity auditor: enters quantities
auditor.py - User → Modular auditor: enters quantities
modular_auditor.py - User → Persistent order auditor: enters orders
persistent_auditor.py - Persistent order auditor → Order history: loads and appends
persistent_auditor.py - User → Inventory manager: selects operations
inventory_manager.py - Inventory manager → Inventory data: loads and saves
inventory_manager.py - User → Profile exercise: enters profile
hello.py