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
volgende
Slide 1: Open vraag
ComputingLower Secondary (Key Stage 3)

In deze les zitten 14 slides, met interactieve quizzen, tekstslides en 1 video.

time-iconLesduur is: 50 min

Onderdelen in deze les

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

Slide 1 - Open vraag

Deze slide heeft geen instructies

Do Now answer

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

Deze slide heeft geen instructies

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

Deze slide heeft geen instructies

Lesson 4: Block based programming
Understanding the fundamentals of programming


Everyone log on to Lessonup!

Slide 6 - Tekstslide

Deze slide heeft geen instructies

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

Deze slide heeft geen instructies

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

Deze slide heeft geen instructies

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

Deze slide heeft geen instructies

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

Slide 10 - Sleepvraag

Deze slide heeft geen instructies

Slide 11 - Video

Deze slide heeft geen instructies

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

Extension task:

Slide 12 - Tekstslide

Deze slide heeft geen instructies

Why do we need if statements in programming?

Slide 13 - Woordweb

Deze slide heeft geen instructies

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

Deze slide heeft geen instructies