Skip to content

Models the state of the machine and calculates the change to be given when an item is purchase

License

Notifications You must be signed in to change notification settings

angshuman-agarwal/VendingMachineSimulator

Repository files navigation

A vending machine sells items for various prices and can give change. At the start of the day it is 
loaded with a certain number of coins of various denominations e.g. 100 x 1p, 50 x 5p, 50 x 10p 
etc. When a drink is requested a certain number of coins are provided. Write code which models 
the state of the machine and calculates the change to be given when an item is purchased (e.g. 
2 x 20p used to purchase an item costing 25p might return 1 x 10p and 1 x 5p)

Refer Design.docx for assumptions/limitations and design

Tools Used:
C#, VS 2012, MSTest, Sandcastle help File builder

About

Models the state of the machine and calculates the change to be given when an item is purchase

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages