| 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 |
| 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 |