alice-teacher Variables

EILEEN PELUSO Pelusoem at lycoming.edu
Tue Nov 6 08:05:31 EST 2012


I often lead in by reminding students that computers hold a lot of information, and that in this particular program that we're working on, we need to keep a few pieces of information (then I get specific, e.g. it's a yes/no answer from the user, it's the number of seconds left in our game).  Then I say, "To do that, we use something called variables.  We give each piece of information that we need to keep a name, and when we use that name, what we actually get is that piece of information."  Then, when we go to define our variables, we talk about how information can be of different types, e.g. number, etc., and the notion of giving it an initial value.  The first variable I have students define is a Boolean.  We ask the user a yes/no question (specifically, do they want to see their character do a little magic), and then we use an if/else to make the character act accordingly.

From: alice-teachers-bounces+pelusoem=lycoming.edu at lists.andrew.cmu.edu [mailto:alice-teachers-bounces+pelusoem=lycoming.edu at lists.andrew.cmu.edu] On Behalf Of Prem Pathuri
Sent: Monday, November 05, 2012 11:24 PM
To: Alice educators
Subject: alice-teacher Variables

I am having a hard time explaining to one of my students EXACTLY what a variable is and I told him to refer to the book but it made it more confusing for him. So could somebody please give me a simple yet concise answer?




Prem Pathuri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20121106/7437ad73/attachment.html 


More information about the alice-teachers mailing list