Skip to content

aneksamun/pricing-basket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pricing basket

An application prices a basket of goods taking into account some special offers.
The goods that can be purchased are:

  • Soup – 65p per tin
  • Bread – 80p per loaf
  • Milk – £1.30 per bottle
  • Apples – £1.00 per bag

Current special offers are:

  • Apples have a 10% discount off their normal price this week
  • Buy 2 tins of soup and get a loaf of bread for half price

An application accepts the list of items in the basket and outputs the subtotal, same as the special offer discounts and the final price.