Listening
3
► 38
Explain to students that the next section
of code is part of a program that controls a robot
from a mobile phone. Pressing different keys on
the number pad makes the robot move forward,
backward, or turn left or right.
Ask students to look at the code (which is in the
C programming language). Tell them they do
not need to understand it yet but they will hear
two programmers talking about it and will have
to identify features while listening. Elicit from
students that g_Turn, g_Move and key_Press
are variables.
While listening, students write numbers in the
boxes below the code to indicate the order they
hear these variables mentioned.
Do'stlaringiz bilan baham: |