Conditionals with the Farmer
Conditionals with the Farmer
Standards:
5.AP.M.1 - Demonstrate how to decompose a task of complexity into simple tasks and compose a simple task into tasks of complexity.
Students will be able to:
Warm Up
Conditionals with the Farmer - Warm Up
Reflect:
When might you use a conditional in your code?
Conditionals with the Farmer - Warm Up
Vocabulary
Today you will be continuing to use conditionals in your code.
Condition - A statement that a program checks to see if it is true or false. If true, an action is taken. Otherwise, the action is ignored.
Conditionals with the Farmer - Warm Up
Vocabulary (cont.)
Conditionals - Statements that only run under certain conditions.
While loop - A loop that continues to repeat while a condition is true.
Activity
Level 1-3 - Skill Building
Conditionals with the Farmer - Activity
1-3
Do This:
4
Level 5 - Predict
Conditionals with the Farmer - Activity
5
Do This
Level 6-9 - Skill Building
Conditionals with the Farmer - Activity
6-9
Do This:
10
Level 11-14 - Skill Building
Conditionals with the Farmer - Activity
11-14
Do This:
14
Level 15-16 - Challenge + Practice
Conditionals with the Farmer - Activity
15-16
Do This:
Wrap Up
Conditionals with the Farmer - Wrap Up
Reflect:
Give an example of a conditional in your daily life.
For example: If I am hungry, I eat some food.
While I am walking across the street,
I keep an eye out for cars.