Skip to content

tobyweston/shopping_basket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The Shopping Basket Problem

Objective

Write a program which will calculate the total price of a basket of shopping, taking into account the special offers. There is no need to write a parser: use a list of stings, or some other simple type as the input for your application.

Example Shopping Basket

Apple, Apple, Orange, Apple, Pineapple, Banana, Orange, Banana

Pricing the Basket

Price List

Item Price Per Item
Apple 12p
Orange 32p
Banana 51p
Pineapple 95p

Special Offers

  • Apples are buy one get one free
  • Bananas are three for two

About

Apply discounts to a shopping basket of fruit kata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages