knowledge-kitchen / course-notes

Flow Charts

Flow charts are useful for diagramming the flow/logic of your program.


Example flow charts

Simple decision-making

The following is a flow chart of a very basic program that asks the user what is their favorite vegetable, and outputs a meaningful response related to what the user entered.

Example flow chart


This is a slightly more sophisticated flow chart showing the logic of a variation of the card game, Blackjack.

Blackjack exercise flow chart