Download as pdf or txt
Download as pdf or txt
You are on page 1of 20

Модуль 3. Урок 1.

Variables as a way of storing


information
1. Переменные.
2. Переменные в цикле.
Rules of the Mars Academy

One microphone One hand Rule of Rule of


rule rule time order
Review

▶ Algorithm

▶ Loops:

▸ Finite

▸ Infinite

▸ Conditional

▶ Operators:

▸ Comparison

▸ Logical
STUDY

“Repeat name”

★ What algorithm does


the project use?
“Repeat name” –
★ What happens if we
demo project
enter different
names?
STUDY

Exercise
“Repeat name”

Question
What Scratch blocks Greeting
does a sprite use to
speak?
STUDY

Exercise
“Repeat name”

Question
Greeting

What should be
here?
STUDY

Exercise
“Repeat name”

Question
Greeting

Name
Where does the
cat get different
names?
How to remember a name?

How do people remember How does a computer


stuff? remember stuff?
Memory, books,
Computer memory
notepads, notebooks ...
How to remember a
name?
Now on this page
we can write the
answer to the

Name
question, “What’s
your name?”

Age
What’s your
name?

______
____
How to remember a
name?

Name
of variable

Age Name
Kepler Value

______
of variable

____
How to remember a name?
Variable!
Write the answer
Create the
to the question Find the
Name
into the Name Name variable
variable
variable
Name

Kepler
STUDY

Variables in Scratch

★ Variable for storing


words.
Topic analysis ★ Variable for
Empty project changing the
speed.
Variables
Name of the variable must reflect its content
STUDY

Analysis of the project

★ Command “ask and


wait”.
Project
“Greeting” ★ What conditions are
required?
Exercise

Build a program to
talk with the cat in
the exercise
“Greeting”.
A variable can change its value many times.
STUDY

Exercise
Country of
minerals

Exercise 1

Exercise 2
Exercise

Collect the exact


number of minerals in
the task on the
platform
“Country of minerals”.
Reflection

★ What have we done today?


★ What was easy and what was difficult?
Reflection

★ What is a variable?
★ Why do we need variables?

You might also like