A web-based functional programming Point of Sale (POS) system designed for Goldilocks cake shops πͺ.
Handles transactions with real-time cart updates, accurate change calculation, and optimal denomination breakdown β built with pure functions, immutability, and higher-order functions for scalability & efficiency.
β
Add cakes to cart by code or selection
β
Real-time subtotal, tax, and total calculation
β
Accurate change computation using greedy algorithm
β
Suggests optimal change denominations (bills & coins)
β
Receipt generation with transaction details
β
Functional programming principles:
- Pure functions
- Immutability
- Higher-order functions
- Function composition
β Local Storage support to persist cart during page reloads
β Error handling for invalid codes, insufficient payment, or zero quantity
Frontend: HTML5, CSS3, JavaScript (ES6+), jQuery
Backend: PHP 8+, MySQL 8.0
Programming Paradigm: Functional Programming
Tools: VS Code, XAMPP/WAMP, GitHub
Security: Input validation, client-side error handling
- Clone repo
git clone https://github.com/PaulPaolo2929/Goldilocks-Point-of-Sale.git