Shopping Basket Discount

Calculate the total price of a shopping basket. Items in the basket have a unit price and quantity.

For example:

If you buy in bulk, you get a discount:

Acknowledgements

I got this kata from Jason Gorman but I have changed it slightly.

Referenced in these Learning Hours: