← Back to Library
Lesson PlanFreeFR

(Francais) D5: Conditionals - If/Then, Part 2

Level D, Lesson 5: Students will understand how multiple conditionals affect a program. They will use Blockly preset programs and Challenge Cards to practice their new skills. Objectives Students will

(Francais) D5: Conditionals - If/Then, Part 2

Independent Practice

Instructions

Have students work on the following activities in small groups (ideally 2-3 students per robot).

Encourage students to share tablet and robot time. Have them establish and rotate through roles such as:

  • Lead Programmer: Holds the tablet and manipulates the code.
  • Robot Wrangler: Retrieves and resets the robot after every program attempt.
  • Documentarian: Records group results, thoughts, and progress. Illustrates group designs and ideas.

When students work together while coding, they're able to help each other identify mistakes and develop creative solutions!

Dot Side Down Extension

  1. Have students use the Wonder Journal: Dot Planning and/or General Planning worksheet to design ways to add to or alter the Dot Side Down preset program. They can:
    • Change the cues.
    • Change the animations.
    • Add sounds or lights.
    • Change the Repeat Forever loop.
  2. After they finish revising the program, have students:
    • Complete a Wonder Journal: Reflection worksheet.
    • Take a screenshot of their Blockly code.
    • Take a video of Dash while the code is running.

Challenge Cards [Optional]

  1. You can purchase our Learn to Code Challenge Card sets and Curriculum Guide here: https://logicsacademy.com/store/
  2. Have students complete the following Challenge Cards:
    • D 3.4: The Dot Monster
    • D 3.5: Dash's Escape!
    • D 3.6: Dash Escapes Again
  3. For each challenge, encourage students to:
    • Use the Wonder Journal: Dot Planning and/or General Planning worksheet to discuss how they can complete the challenge.
    • Review the Troubleshooting and Problem Solving & Debugging worksheets if they run into any problems with their code.
  4. After they finish each challenge, have students:
    • Complete a Wonder Journal: Reflection worksheet.
    • Take a screenshot of their Blockly code.
    • Take a video of Dot while the code is running.
    • Update their Challenge Card Checklists.

Guided Practice

Activity: Dot Side Down

  1. Project your tablet screen, open the Blockly app, and go to the menu at the top left of the screen.
  2. Go to the Create New Project menu and select the Dot Side Down preset program. Then tap "create."Dot Side Down
  3. Ask the students to look at the program and predict what they think will happen when it is run.
    • Run the program to see if the students' predictions were correct.
  4. Then ask the following questions:
    • "What do you notice about the code for the Dot Side Down activity?" (Sample response: "There is more than one conditional.")
    • "What happens if none of the conditionals are met?" (Sample response: "Dot will gobble.")
    • "How many conditionals can you add to one program?" (Sample response: "The number is unlimited.")
    • "How do you change the cues?" (Sample response: "Tap on the If block and choose a different cue.")

Quick Check

  • How many conditional statements are in this program?
  • How would you change the animations for each cue?

Review

Conditionals Review

Briefly review how students used conditionals with Dash during the previous lesson by asking:

  • "What blocks did you use to program Dash last time?" (Sample response: "If blocks.")
  • "What purpose did the If blocks serve in your program?" (Sample response: “They helped Dash make decisions when different events were sensed.”)

Code.Org Connections [Optional]

  1. Review Code.org's Course D, Lesson 11: https://code.org/curriculum/coursed-draft/11/Teacher
  2. Ask, "How did conditionals help you navigate the bee and zombie puzzles?" (Sample response: "Conditionals made the code easier and shorter to write. The bee and zombie continued to look for places to turn so that I didn't have to count spaces to move forward.")

Before the Lesson

Prior Experience

It is recommended that students complete:

  • Level A-C Lessons: All
  • Level D: Lessons 1-4
  • [Optional] Level A-C Challenge Cards: All
  • [Optional] Level D Challenge Cards: D 1.1-3.3

You can purchase our Learn to Code Challenge Card sets and Curriculum Guide here: https://store.makewonder.com/#/education

Preparation

  • Fully charge the tablets and robots.
  • Install the Wonder Workshop Blockly app on each tablet.

Educational Standards

CSTA

ISTE

NGSS

Common Core

Wrap Up

Student Presentations

  1. Have student groups take turns sharing one of their programs with the class. Encourage them to:
  2. Explain their design thinking. (E.g., “We added different events to the program because we wanted to make the program funnier.,” “We changed the Repeat Forever block because we only wanted to repeat the program 3 times”)
  3. Share any obstacles and difficulties they overcame during the activity (e.g., "I wasn't sure how to change the events, but then I added another If block").
  4. Encourage students to ask each other how they accomplished different objectives and give each other feedback on their programs. Possible questions/feedback includes:
    • "How did you (change the events)?"
    • "I like how you (changed the animation/s)."
    • "What if you (added another If block)?"

Follow-Up Questions/Discussion

  • How did the If blocks help you with your program?
  • What if you used the Repeat block instead of the Repeat Forever block? How would that have changed the program?
  • Can Dot follow two different conditional statements at the same time?

Assessment

  • Use our Evaluation Rubric to review students' work and presentations.
  • [Optional] Share your students' work with the world using @logicsacademy and #dashanddot!

Instruction

Introduction

  1. Say, "We have been using the If block when we want Dash or Dot to make a decision. Now, we are going to use conditionals to tell Dash to make a decision."

Quick Check

  • What is a conditional statement?
  • Where can you find the conditional blocks in Blockly?
  • What happens if a block is placed outside the conditional block?