Block based programming lesson 4 (Mr Evlat)

Write down your answer.
Which is the correct code to draw an Octagon
A or B?
1 / 14
next
Slide 1: Open question
ComputingLower Secondary (Key Stage 3)

This lesson contains 14 slides, with interactive quizzes, text slides and 1 video.

time-iconLesson duration is: 50 min

Items in this lesson

Write down your answer.
Which is the correct code to draw an Octagon
A or B?

Slide 1 - Open question

This item has no instructions

Do Now answer

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

This item has no instructions

What is a conditional/If 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 5 - Quiz

This item has no instructions

Lesson 4: Block based programming
Understanding the fundamentals of programming


Everyone log on to Lessonup!

Slide 6 - Slide

This item has no instructions

Lesson objectives 
Conquer: Apply you programming skills to create and solve problems in Minecraft.

Aspire: Use conditionals to make your programs smarter.




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

Slide 7 - Slide

This item has no instructions

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

  1. Sequencing: Creating a set of instructions in order.
  2. Loops: Make a set of instructions repeat.
  3. If/Conditional statements: A decision point in a program.
Recap

Slide 8 - Slide

This item has no instructions

The repeat statement loops every instruction inside its mouth by 7 times

The if/conditional statement checks if the bee has arrived at a flower

The do section of our if/conditional statement is where we choose our instruction if the answer is true

The else section of our if/conditional statement is where we choose our instruction if the answer is false

Slide 9 - Slide

This item has no instructions

Match the programming terms to the code!
Loop
If statement
True output
False output

Slide 10 - Drag question

This item has no instructions

Slide 11 - Video

This item has no instructions

Practice your skills
We are going to practice the skills covered over the previous few weeks.
Complete levels 1-14

Extension task:

Slide 12 - Slide

This item has no instructions

Why do we need if statements in programming?

Slide 13 - Mind map

This item has no instructions

Programs like Minecraft need to use If statements so the program can make decisions based on what the user does

For example:

  • If the player walks into lava, then the game takes damage away.

  • If it becomes night, then mobs start to spawn.

  • If the player breaks a block, then the block drops an item.

  • If the hunger bar is low, then the player can’t sprint.

Without If statements, the game wouldn’t react to anything - it would just run in a straight sequence.

If statements allow the game world to change, respond, and behave differently depending on conditions.

Slide 14 - Slide

This item has no instructions