!1
Full_Curriculum
Full_Curriculum
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Lesson 4<br />
Events<br />
The Foos Chapter 4<br />
Then ask a simple question that most students will be able to answer:<br />
What is the color of my hair?<br />
What is the weather today?<br />
What day of the week is it?<br />
Introduction(cont.):<br />
Call on a student who has a hand raised and let him/her answer the question. Then<br />
ask the class how you knew the student wanted you to call on him/her.<br />
The class should mention that the student raised his/her hand.<br />
<br />
Explain that when the student raised his/her hand, it is an event because it was an<br />
action that prompted something else to happen--you calling on the student.<br />
Ask the class if they can think of any other types of everyday events. You might need<br />
to clarify that you are not talking about events in the conventional sense, like a<br />
birthday party or a sports game. In computer science, events are actions that cause<br />
something else to happen.<br />
Here are some examples:<br />
- If you have a call and response to get the student’s attention, your “call” is the<br />
event and their response is the resulting action (e.g., you clap three times and the<br />
class claps once to let you know they are paying attention; you turn the lights off<br />
and the class becomes quiet).<br />
- When the alarm clock goes off (the event), you wake up (resulting action of the<br />
event).<br />
- When the street light turns green (the event), cars start driving (resulting action of<br />
the event)<br />
- When you click the power button on a computer (the event), the computer turns on<br />
(resulting action of the event).<br />
!41