Block based programming lesson 3 (Mr Evlat)

Lesson 3: Block based programming
Understanding the fundamentals of programming


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

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

time-iconLesduur is: 50 min

Onderdelen in deze les

Lesson 3: Block based programming
Understanding the fundamentals of programming


Slide 1 - Tekstslide

Deze slide heeft geen instructies

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

Slide 2 - Open vraag

Deze slide heeft geen instructies

1. Rectangle
2. Square

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

Deze slide heeft geen instructies

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

Deze slide heeft geen instructies

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

Deze slide heeft geen instructies

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

Deze slide heeft geen instructies

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

Slide 8 - Tekstslide

Deze slide heeft geen instructies

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

Deze slide heeft geen instructies

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

Deze slide heeft geen instructies

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

Deze slide heeft geen instructies

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