C++ vending machine

Create a program that simulates a vending machine. The vending machine offers three products: Soda, Juice, and Water Bottles. Soda costs P30, juice costs P23, and water bottle costs P15. Create menu that asks for the user's choice and exits when the user inputs 555. Once a choice has been made, create a loop that would repeatedly ask for coins to be inserted until the appropriate price is reached or exceeded. The vending machine program should accept coin denominations of one, five and ten and accepts bill denominations of twenty and fifty only. In the end, after the cost was accumulated or exceeded, the program should display a message of purchase completion along with any change that might be returned. Only WHILE LOOP, SWITCH CASE and IF ELSE please
why did you choose to become software developer one day?

you need to get used to learning, using online content, books etc, if you want to succeed.

if you can't grasp this yourself you would be better of working as taxi driver, at least there you don't have to think much.
Topic archived. No new replies allowed.