Block based programming lesson 4

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

In deze les zitten 15 slides, met interactieve quizzen en tekstslides.

time-iconLesduur is: 50 min

Onderdelen in deze les

Do now - What shape
will be drawn?

Slide 1 - Open vraag

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 - Tekstslide

Deze slide heeft geen instructies

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 - Tekstslide

Deze slide heeft geen instructies

Lesson 4: Block based programming
Understanding the fundamentals of programming


Slide 4 - Tekstslide

Deze slide heeft geen instructies

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 - Tekstslide

Deze slide heeft geen instructies

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 - Tekstslide

Deze slide heeft geen instructies

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 - Quizvraag

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 - Quizvraag

Deze slide heeft geen instructies


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 - Quizvraag

Deze slide heeft geen instructies


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 - Quizvraag

Deze slide heeft geen instructies

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 - Tekstslide

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 - Tekstslide

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 - Tekstslide

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 - Quizvraag

Deze slide heeft geen instructies

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 - Quizvraag

Deze slide heeft geen instructies