How kushal-sw/billing-system-java works
This is a small, console-based supermarket billing program. A customer enters a name, selects catalogue products and quantities, and can add multiple items; the program then calculates subtotal, tiered discount, GST, and prints a tax invoice. The runtime is a single Java class with in-memory catalogue and cart arrays. The README gives no further capability details, so the diagram reflects the sampled source only.
Main entry points: SupermarketBilling.java Shopping orchestration
Components 8
Shopping flow
- Shopping orchestration
SupermarketBilling.java - Product catalogue
SupermarketBilling.java - In-memory cart
SupermarketBilling.java
Billing
- Subtotal calculation
SupermarketBilling.java - Discount calculation
SupermarketBilling.java - Invoice generation
SupermarketBilling.java
Other components
- Customer
- Console input/output
Connections 10
- Customer → Shopping orchestration: provides selections
SupermarketBilling.java - Shopping orchestration → Console input/output: prompts and prints
SupermarketBilling.java - Shopping orchestration → Product catalogue: displays products
SupermarketBilling.java - Shopping orchestration → In-memory cart: adds selections
SupermarketBilling.java - Shopping orchestration → Invoice generation: generates invoice
SupermarketBilling.java - Invoice generation → Subtotal calculation: calculates subtotal
SupermarketBilling.java - Invoice generation → Discount calculation: calculates discount
SupermarketBilling.java - Subtotal calculation → In-memory cart: reads quantities
SupermarketBilling.java - Invoice generation → Product catalogue: reads prices and GST
SupermarketBilling.java - Invoice generation → Console input/output: prints tax invoice
SupermarketBilling.java