The Shopping Basket Problem
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
|Item||Price Per Item|
- Apples are buy one get one free
- Bananas are three for two