Skip to content
List of soda with prices: select soda, add money, get soda and change
C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
main.cpp
soda-machine.exe

README.md

SodaMachine

List of sodas with quantity of each shown

  • User inputs which soda followed by the amount they have
    • If user puts a wrong number in for soda, it will let them know and restart
    • If user puts in wrong price amount for soda, it will not dispense
    • If user puts a bill greater that $10, it will ask them to lower amount
  • Once soda amount is placed, machine will drop one soda, give change, and update console screen to -1 of that soda
    • If soda option is empty, user will be notified

RunProgram

In order to run the program instead of looking at the code, download the soda-machine.exe file to run

You can’t perform that action at this time.