Skip to content

Instantly share code, notes, and snippets.

@r1ckhenry
Last active June 13, 2017 13:32
Show Gist options
  • Save r1ckhenry/dc821c5c362c958c8f7b8843a18275ef to your computer and use it in GitHub Desktop.
Save r1ckhenry/dc821c5c362c958c8f7b8843a18275ef to your computer and use it in GitHub Desktop.
Shopping Basket
# Shopping Basket Lab
- Items should have a name, price and boolean value that determines whether or not they are eligible for a buy one get one free discount.
- A shopping basket can have multiple items.
- It should be able to add and remove items.
Extensions:
- 10% discount for all shopping baskets over £20
- If the customer has a valid discount card then they get an additional 5% off.
- Add the ability to have buy one get one free items.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment