
This project is a TypeScript implementation of a simplified Jamba Juice store system, developed as part of a series of WODs (Workout of the Day) in ICS 314. The project incrementally models real-world entities using object-oriented design principles.
The system begins by representing Jamba Juice menu items, including their ingredients, prices, and calorie counts by size. It then extends this functionality to support customer orders and, finally, store inventory management.
In Jamba Juice 1, I implemented:
MenuItem class to represent individual drinksMenu class to store menu items and search for drinks by ingredientIn Jamba Juice 2, I added:
Drink class to represent a specific drink order with a selected sizeOrder class to manage multiple drinks and compute the total costIn Jamba Juice 3, I extended the system to reflect real-world constraints:
Inventory class to track available servings of each ingredientStore class that produces drinks while decrementing inventory and preventing orders when ingredients run outThis project emphasizes:
RecordSource:
TypeScript Playground