How brandenbeaman/cps works
This repository is a collection of four independent C++ lab programs, not one integrated application. Their user-facing workflows are: process numbers from a selected file and report Harshad status; demonstrate Q10p6 fixed-point conversions and arithmetic; create passengers and manage a cabin manifest; and load a used-car inventory for interactive searches. The graph separates these products and shows their main runtime stages. Lab 5’s vehicle base-class details and Lab 3’s implementation are represented only as far as the tree and sampled source support.
Main entry points: Lab_5.cpp Inventory and Search · Lab_2.cpp File Processor · Lab_4.cpp Manifest Menu · Manifest.cpp Manifest Collection
Components 17
Harshad Processor
- File Processor
Lab_2/Lab_2.cpp - File and Number Helpers
Lab_2/harshad.cpp - Number Input
- Status Output
Fixed Point Demo
- Q10p6 Demo
Lab_3/Lab_3/Lab_3.cpp - Q10p6 Arithmetic
Lab_3/Lab_3/Q10p6.cpp
Passenger Manifest
- Manifest Menu
Lab_4/Lab_4.cpp - Passenger Record
Lab_4/passenger.cpp - Manifest Collection
Lab_4/Manifest.cpp
Vehicle Search
- Inventory and Search
Lab_5/Lab_5.cpp - Vehicle Inventory
Lab_5/Inventory.txt - Vehicle Interface
Lab_5/Vehicle.h - Gas Vehicle
Lab_5/GasVehicle.cpp - Electric Vehicle
Lab_5/ElectricVehicle.cpp
Other components
- User
- User
- User
Connections 17
- User → File Processor: selects file
- File Processor → File and Number Helpers: checks filename
- File Processor → Number Input: reads numbers
- File Processor → File and Number Helpers: checks Harshad
- File Processor → Status Output: writes results
- Q10p6 Demo → Q10p6 Arithmetic: constructs and operates
- User → Manifest Menu: enters commands
- Manifest Menu → Passenger Record: validates and sets
- Manifest Menu → Manifest Collection: adds, removes, prints
- Manifest Collection → Passenger Record: reads passenger info
- User → Inventory and Search: searches inventory
- Inventory and Search → Vehicle Inventory: loads records
- Inventory and Search → Gas Vehicle: creates and configures
- Inventory and Search → Electric Vehicle: creates and configures
- Inventory and Search → Vehicle Interface: searches vehicle records
- Inventory and Search → Gas Vehicle: formats matching specs
- Inventory and Search → Electric Vehicle: formats matching specs