Page 81 - Learn to Program - Basic-256
P. 81
Chapter 5: Thinking Like a Programmer Page 65
Another food example. You are thirsty and want a soda from the machine.
Take a look at Illustration 15 (below).
Start
No Do we have Yes
enough change
for the machine?
Insert coin.
No Have we Yes
Inserted enough?
Make selection.
No Yes
Sold out?
Get can.
Get change if any.
Drink.
Finish
Illustration 15: Soda Machine - Flowchart
© 2019 James M. Reneau (CC BY-NC-SA 3.0 US)

