Block based programming lesson 4

Do now - What shape
will be drawn?
1 / 15
next
Slide 1: Open question
ComputingLower Secondary (Key Stage 3)

This lesson contains 15 slides, with interactive quizzes and text slides.

time-iconLesson duration is: 50 min

Items in this lesson

Do now - What shape
will be drawn?

Slide 1 - Open question

Do now activity should take 3 mins for students to answer after accessing lessonup. 

Extension task allows students to develop their typing skills which will be useful when we move to text based languages. 
Do Now answer
A rectangle will be drawn

Slide 2 - Slide

This item has no instructions

Coding Club!!
Our new coding club will be starting after Easter on Tuesdays. There are only 12 spaces and 3 have already been taken. Please see Mr Thomas if you'd like to attend.

Description
"Join us this half term Get ready to unleash your creativity and coding prowess as we dive into the thrilling realm of robotics using the powerful BBC micro:bits!

In our STEM Venturi version of Robot Wars, you'll be part of an epic team challenge where your mission is to code your micro:bit robot to conquer obstacles, seize the flag, and emerge victorious as the ultimate champions!

This isn't just about competition; it's about honing crucial coding and teamwork skills that will propel you to success in the digital age. đź’ˇ Over the span of 6 action-packed weeks, you'll unlock the secrets of coding while forging unbreakable bonds with your teammates."

Slide 3 - Slide

This item has no instructions

Lesson 4: Block based programming
Understanding the fundamentals of programming


Slide 4 - Slide

This item has no instructions

Lesson objectives 
Conquer: Understand the purpose of conditional statements. 

Aspire: Apply conditional statements to your programs.



 
 
Aspire: Create a set of loops to make a program more efficient.

Slide 5 - Slide

This item has no instructions

Recap
Previously we have made use of 2 very important concepts in programming.


  1. Sequencing - Creating a set of instructions In order
  2. Loops– Make a set of instructions repeat






Slide 6 - Slide

This item has no instructions

What is sequencing?
A
A set of instructions
B
A set of instructions in order.
C
A program created by code.
D
The result of our program when run.

Slide 7 - Quiz

Quiz should take 3-4 mins, allow time on later questions for students to read through the code options to figure out which option is correct. 
What is a loop?
A
A set of instructions to complete a task.
B
A set of instructions in order.
C
A repeated section of code
D
The end result of your program.

Slide 8 - Quiz

This item has no instructions


A
The bird will end up one step short of the pig.
B
The bird will make it to the pig.
C
The bird will run into the TNT.
D
The bird will run into the wall.

Slide 9 - Quiz

This item has no instructions


A
Scrat will reach the acorn. There are no bugs in the code.
B
Scrat will not move from the first block.
C
Scrat will not reach the acorn because he turns the wrong way.
D
There are not enough move forward blocks.

Slide 10 - Quiz

This item has no instructions

Conditional statements
If statements are used in programming to make decisions based on conditions being true or false.

  •  If nobody saw me do it 
  • Then might get away with it
  •  Else: busted







Slide 11 - Slide

If statements for a program to make a decision based on a choice. 

Do these 2 thing match, is one number bigger than the other, Is there something in this position. 
Using if statements
We need to check if the bee is hovering over the flower to collect its nectar. 

To do this we perform a check. 

Slide 12 - Slide

You can demo this here with this prediction challenge

The bee checks if a flower is at that location, if there is a flower, the bee will collect the honey. 

https://studio.code.org/s/express-2023/lessons/15/levels/2 
ISL programming task 
Complete up to level 13.
Ignore the line limit for now. 

Slide 13 - Slide

Give majority of lesson time for students to practice skills. 

20 to 25 mins. 

Extension hidden behind animation if need that brings together multiple skills. dont show or students may click on this first. 
What is programming?
A
The order in which we write our code.
B
The programs we use.
C
A set of instructions to complete a task.
D
The result of our program when run.

Slide 14 - Quiz

This item has no instructions

What is a conditional statement?
A
A decision in a program.
B
A section of the program that loops.
C
A set of instructions in order.
D
An error in the code.

Slide 15 - Quiz

This item has no instructions