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

Answer:

Pig out on chocolate-chip cookies!


Single-block if Statements

cookies

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

QUESTION 2:

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