Rocket draws a tree on his tablet. It has no leaves, only questions. The first one asks about homework.
"Yes leads to free time," Raven says. "What do you notice about the no path?"
Nova shows a door and a dog. "Sometimes one if lives inside another," she says.
Let's trace the trees and build our own. Then we'll solve the door and dog puzzle.
A DECISION TREE shows IF / ELSE as a flowchart. Trace the tree below.
Fill in the blanks for: SHOULD I WEAR A COAT?
And: SHOULD I PLAY OUTSIDE?
Sometimes one IF lives INSIDE another IF. Read this carefully:
IF the door is open:
IF the dog is inside:
say 'Hi, dog!'
ELSE:
whistle for the dog
ELSE:
knock on the door | Statement | True or false? |
|---|---|
| A decision tree is IF and ELSE drawn as a picture. | ? |
| A nested IF is an IF inside another IF. | ? |
| The inside question is asked every single time. | ? |
| Each question box has a YES path and a NO path. | ? |
| A decision tree can only ask one question. | ? |