Block based programming lesson 3 (Mr Evlat)

Lesson 3: Block based programming
Understanding the fundamentals of programming


1 / 13
next
Slide 1: Slide
ComputingLower Secondary (Key Stage 3)

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

time-iconLesson duration is: 50 min

Items in this lesson

Lesson 3: Block based programming
Understanding the fundamentals of programming


Slide 1 - Slide

This item has no instructions

What shapes will be drawn by these snippets of code?
1.
2.

Slide 2 - Open question

This item has no instructions

1. Rectangle
2. Square

Slide 3 - 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 4 - Slide

This item has no instructions

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

  • Sequencing - Creating a set of instructions in order.

  • Loops - Make a set of instructions repeat.

Slide 5 - Slide

This item has no instructions

Conditionals/If statements
If it is raining
Put a coat on
Dont put a coat on
TRUE
False
  • If statements are used in programming to make decisions based on conditions being true or false.

Slide 6 - Slide

This item has no instructions

We need to check if the bee is hovering over the flower to collect its nectar.

To do this we perform an if statement. 

Slide 7 - Slide

This item has no instructions

We use our loop block to repeat the sequence of code until we have collected all the nectar on the path

Slide 8 - Slide

This item has no instructions

Drag and drop to fill in the gaps in the code so the bee collects all the nectar!
Move Forward
7
If at
Get nectar

Slide 9 - Drag question

This item has no instructions

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

Slide 10 - Quiz

This item has no instructions

What is sequencing?
A
A block of code that repeats until a condition is met
B
A set of instructions carried out in a specific order.
C
A type of programming mistake that stops a program running
D
A question that makes a program choose between two options

Slide 11 - 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 command that checks if a condition is true or false
B
A set of instructions that must be followed in order.
C
A repeated section of code that runs multiple times
D
The end result of your program.

Slide 12 - Quiz

This item has no instructions

Paired programming task
Partner A will be the only person programming, Partner B will tell them what blocks to use


Complete all 15 levels together!


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.