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

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

time-iconLesduur is: 50 min

Onderdelen in deze les

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

Deze slide heeft geen instructies

Slide 2 - Tekstslide

Deze slide heeft geen instructies

Slide 3 - Tekstslide

Deze slide heeft geen instructies

Survey Link

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

Slide 4 - Tekstslide

Deze slide heeft geen instructies

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

Slide 5 - Open vraag

Deze slide heeft geen instructies

Block based programming
Lesson 1

Slide 6 - Tekstslide

Deze slide heeft geen instructies

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

Slide 7 - Tekstslide

Deze slide heeft geen instructies

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

Deze slide heeft geen instructies

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

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 vraag

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

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

Deze slide heeft geen instructies

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

Deze slide heeft geen instructies

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




Slide 14 - Tekstslide

Deze slide heeft geen instructies

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

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

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

Deze slide heeft geen instructies

Our instructions would look like this

Slide 18 - Tekstslide

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

Deze slide heeft geen instructies

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

Deze slide heeft geen instructies

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

Slide 21 - Tekstslide

Deze slide heeft geen instructies

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

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

Deze slide heeft geen instructies

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

Deze slide heeft geen instructies

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

Deze slide heeft geen instructies

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

Start on either beginner or intermediate.

Slide 26 - Tekstslide

Deze slide heeft geen instructies