Block based programming Lesson 1

Student Survey
In the week Starting 21st October 2024 we have been asked to complete a survey.

The next two slides give you an idea what it's about.
1 / 26
next
Slide 1: Slide
ComputingLower Secondary (Key Stage 3)

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

time-iconLesson duration is: 50 min

Items in this lesson

Student Survey
In the week Starting 21st October 2024 we have been asked to complete a survey.

The next two slides give you an idea what it's about.

Slide 1 - Slide

This item has no instructions

Slide 2 - Slide

This item has no instructions

Slide 3 - Slide

This item has no instructions

Survey Link

Click the survey link below and complete the survey:
Survey Link

Slide 4 - Slide

This item has no instructions

Do Now
Write a sequence of instructions
so the bird reaches the pig. 
For example move forward two times. 

Slide 5 - Open question

This item has no instructions

Block based programming
Lesson 1

Slide 6 - Slide

This item has no instructions

Lesson objectives 
Conquer: Understand the key programming concept of sequencing.
Aspire:Apply sequencing to solve programming problems.

Slide 7 - Slide

This item has no instructions

What is programming?
“Programming is how you get computers to solve problems”

  • Programming is the process of creating a set of instructions that tell a computer how to perform a task.

  • We have 2 main kinds of programming:

Slide 8 - Slide

This item has no instructions

Creating a sequence 
A Sequence, is the order that commands are executed by a computer, this allows us to carry out tasks that have multiple steps.

  • You are going to create a sequence of instructions

  • Create a set of instructions to make a cup of tea.


Slide 9 - Slide

Running code in order

Line 1 will run first 
then line 2
then line 3

The instructions have to be written in the right order. 
Create a set of instructions to make a cup of tea.

Slide 10 - Open question

Be super picky with students instructions/answers.

Examples 
"Put water in the kettle" where from?
"stir the tea" With what? 

Make sure students are really specific with their instructions as in programs you have to be really specific. 
My method 
  1. Fill the kettle​
  2. Boil the water​
  3. Add tea bag to mug​
  4. Pour boiling water into mug​
  5. Wait​
  6. Remove the teabag​
  7. Add sugar (if wanted)
  8. Add milk (if wanted)

Slide 11 - Slide

Be super picky with students instructions.
Examples
"Put water in the kettle" where from?
"stir the tea" With what?
Make sure students are really specific with their instructions as in programs you have to be really specific. 

This example is not perfect, no specific enough. 
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 12 - Quiz

This item has no instructions

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 13 - Quiz

This item has no instructions

Applying our skills 
We will now apply our new found skills in sequencing to create some programs. 




Slide 14 - Slide

This item has no instructions

Lets have a go at programming some sequences.
On the first level, we want the angry bird to reach his nemesis the pig.
 

We need to create a sequence of instructions that make this happen
Drag the move forward into the when run box. Then click run. 

Slide 15 - Slide

This is where you will demo the level, you could use student feedback to build it.

The next slide has a set of tasks for the student to complete. 
Have a go ISL. 
Complete the first 6 levels

Click here 

Slide 16 - Slide

When majority of student have reach level 6, move to next slide.
Making tea
So we have the written process we would follow to make 1 cup of tea.

  • If this was a program we have coded, and we wanted to create 5 cups of tea we would have to repeat the instructions 5 times.

Slide 17 - Slide

This item has no instructions

Our instructions would look like this

Slide 18 - Slide

Explain this would take ages to code, this is not an efficient way of writing instructions. 
For 25 cups of tea
This would take a really long time if we were writing this program, so we use a coding concept called iteration (loop).

Slide 19 - Slide

This item has no instructions

Using a Loop​
  • A loop in a computer program is set of instructions that are repeated until the loop meets a STOP condition.​

  • A STOP condition will tell the program when it’s completed.​


Slide 20 - Slide

This item has no instructions

So instead of 10 lines of code, we can do it in 2.

Slide 21 - Slide

This item has no instructions

Lets have a go at programming some sequences.
(ISL)
We will now use loops to help the angry bird reach the Pig. 
Try to complete them with as few blocks as possible. 
Limited blocks

Slide 22 - Slide

3 quick exit ticket questions

With a just in case mastery task for typing
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 23 - Quiz

This item has no instructions

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 24 - Quiz

This item has no instructions

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 25 - Quiz

This item has no instructions

Mastery task
Continue to practice your mastery of different typing skills.

Start on either beginner or intermediate.

Slide 26 - Slide

This item has no instructions