Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/ModelingExercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 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 |
Loading