Cola Machine

Language(s): C++

A small program I wrote in C++ in an attempt to better learn the language. The user gets a wallet filled with $15 upon launch, this is enough to buy every item in the vending machine once, when their wallet empties and they try to make a purchase it will notify that they ran out of cash and have to restart to get a new wallet. Attempting to buy an item not in the machine results in a notification without losing any money.


Download