A terminal-based cash register backend simulator highlighting real-time sequential variable mution. It utilised memory assignment operators (+=) to dynamically aggregate item pricing profiles, integrates string length processing to track customer identify properties, and applies precise automated sales tax margins.
Improvements & V2 Ideas:
- Infinite Cart Scanning: Leverage iterative loos (while) to let a cashier scan an unlimited, arbitrary number of store products until they type a keyword like "DONE" to trigger the final checkout sequence.
- Dynamic Receipt Framing: Use advanced string multiplication to dynamically adjust the width of the ASCII --- RECIPT --- box boundaries so it automatically stretches or shrinks based on the lengths of item names or totals.
- Discount System: Add an optinal input field at checkout for promotional codes (e.g., "SAVE10"), calculating and applying a percentage discount directly to the subtotal before calculating the final tax margin.