Small basic lesson 3

Do now -Identify the names
of the variables in these programs
1 / 13
suivant
Slide 1: Question ouverte
ComputingLower Secondary (Key Stage 3)

Cette leçon contient 13 diapositives, avec quiz interactifs et diapositives de texte.

time-iconLa durée de la leçon est: 50 min

Éléments de cette leçon

Do now -Identify the names
of the variables in these programs

Slide 1 - Question ouverte

Do now activity should take 3 mins for students to answer after accessing lessonup. 

Extension task allows students to develop their typing skills which will be useful when we move to text based languages. 
Do Now answer

Slide 2 - Diapositive

Cet élément n'a pas d'instructions

Lesson objectives 

Conquer: Use variables to store values within code.
 
Aspire Higher: Create conditional statements using variables

Quick recap quiz






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

Slide 3 - Diapositive

Cet élément n'a pas d'instructions

Slide 4 - Diapositive

Cet élément n'a pas d'instructions

What is the best variable name to store a users favorite drink.
A
Drink = Coke
B
Food = Coke
C
Variable = Coke`
D
Data = Coke

Slide 5 - Quiz

Cet élément n'a pas d'instructions

What is the purpose of this line of code?

textwindow.read
A
Writes text to screen
B
Saves information
C
Allows the user to enter information
D
Makes the background see through.

Slide 6 - Quiz

Cet élément n'a pas d'instructions

A variable is a method of ....
A
Writing text to screen.
B
Storing information
C
Running you program
D
Searching for Bugs

Slide 7 - Quiz

Cet élément n'a pas d'instructions

If Statements
Today we are going to look at a new programming method called if Statements. 

If statements use variables and information users enter to make decisions. 

Slide 8 - Diapositive

Cet élément n'a pas d'instructions

If statements
We can program the computer to change how it responds using information we give it.

Here we can the response we have changes based on the answer to the question "Is it raining?"

Slide 9 - Diapositive

Cet élément n'a pas d'instructions

Shape drawing program
We are going to create a program that will draw a shape that the user asks for.

Slide 10 - Diapositive

Copy paste this code them demo after students have completed this slide. 
TextWindow.WriteLine("What is your shape?")
answer = TextWindow.Read()
if answer = "Rectangle" then
    Turtle.Move(100)
    Turtle.Turn(90)
    Turtle.Move(250)
    Turtle.Turn(90)
    Turtle.Move(100)
    Turtle.Turn(90)
    Turtle.Move(250)
    Turtle.Turn(90)
else
    TextWindow.WriteLine("I dont understand what you said?")
EndIf

Slide 11 - Diapositive

Cet élément n'a pas d'instructions

Slide 12 - Diapositive

Cet élément n'a pas d'instructions

Slide 13 - Carte mentale

Cet élément n'a pas d'instructions