Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.55 KB

File metadata and controls

20 lines (15 loc) · 1.55 KB

Exercise

Supermarket shopper Class

Method Member variables Scenario Result
SumCostOfBasket(HashMap<String, int> basket)
HashMap<String, int> basket Total cost of the items return the total cost
CheckBankBalance() I can afford all items return true
I cannot afford all items return false

Organized individual Class

Method Member variables Scenario Result
GetReciept() HashMap<String, int> basket Purchased items return list of purchased items
Quantity of purchased items return quantity of each item
Total cost of the basket return the total cost