Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 1.78 KB

File metadata and controls

11 lines (6 loc) · 1.78 KB
Classes Member variables Methods Scenario Outcomes
Supermarket HashMap<String product, Integer price> products calculateTotal(HashMap<String product, Integer quantity> basket) Empty basket
Items in basket
Return "Basket is empty"
Return total cost of items
Classes Member variables Methods Scenario Outcomes
Receipt HashMap<String product, Integer price> products
HashMap<String product, Integer quantity> basket
calculateTotal()

itemizeReceipt()
Empty basket
Products in basket
Payment not complete
Payment complete
Return "Basket is empty"
Return total cost of products
Return "Payment is not complete"
Return itemized receipt