How stephenjamesada/shopping-cart works
Shopping Cart is a small standalone C console program. The user selects a currency, enters a quantity and item names and prices, then sees a cart summary. These stages are all implemented within main in cart.c; the diagram separates their responsibilities without implying separate modules. The cart and product values are in-memory state only. The source excerpt supports the shown interactions and data flow.
Main entry points: cart.c Cart program
Components 6
Other components
- User
- Cart program
cart.c - Currency selection
cart.c - Item entry
cart.c - Cart state
cart.c - Cart summary
cart.c
Connections 7
- User → Cart program: provides input
cart.c - Cart program → Currency selection: prompts choice
cart.c - Currency selection → Cart state: sets currency
cart.c - Cart program → Item entry: prompts items
cart.c - Item entry → Cart state: stores items
cart.c - Cart program → Cart summary: prints summary
cart.c - Cart state → Cart summary: provides values
cart.c