Flow charts

From Knowledge Kitchen
Revision as of 08:04, 21 September 2017 by Amos (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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

Shapes

  • use ovals for start and end
  • use parallelograms for input/output
  • use rectangles for internal processing
  • use diamonds/rhombus for decision points
  • user arrows to indicate flow

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.png

Blackkjack

This is a slightly more sophisticated flow chart showing the logic of a variation of the game blackjack.

Blackjack assignment flow chart.png


What links here