1 of 17

Conditionals with the Farmer

2 of 17

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:

  • Define circumstances when certain parts of a program should run and when they shouldn't.
  • Determine whether a conditional is met based on criteria.

3 of 17

Warm Up

4 of 17

Conditionals with the Farmer - Warm Up

Reflect:

When might you use a conditional in your code?

5 of 17

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.

6 of 17

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.

7 of 17

Activity

8 of 17

Level 1-3 - Skill Building

Conditionals with the Farmer - Activity

1-3

Do This:

  • Follow the instructions on each level.
  • Once you finish all skill building levels, you may move on.

9 of 17

4

10 of 17

Level 5 - Predict

Conditionals with the Farmer - Activity

5

Do This

  • Read the code, then make a prediction.

11 of 17

Level 6-9 - Skill Building

Conditionals with the Farmer - Activity

6-9

Do This:

  • Follow the instructions on each level.
  • Once you finish all skill building levels, you may move on.

12 of 17

10

13 of 17

Level 11-14 - Skill Building

Conditionals with the Farmer - Activity

11-14

Do This:

  • Follow the instructions on each level.
  • Once you finish all skill building levels, you may move on.

14 of 17

14

15 of 17

Level 15-16 - Challenge + Practice

Conditionals with the Farmer - Activity

15-16

Do This:

  • Challenge yourself with Level 15
  • Get more practice with conditionals in Level 16

16 of 17

Wrap Up

17 of 17

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.