go to previous page   go to home page   hear noise   go to next page


Pig out on chocolate-chip cookies!

Single-block if Statements


The decision is about whether to buy cookies or just stroll on by. In the flow chart, start at the top, then follow the line to the question:

are you hungry?

The answer to the question is either true or false.

If the answer is true,
      follow the line labeled true,
      perform the action in the box "buy cookies",
      then follow the line to "done".

If the answer is false
      follow the line labeled false to "done".


How is this chart different from the charts in the previous chapter?