Thank you all very much! I used your explanations and they worked out great!<div><br></div><div><br></div><div><br></div><div>Prem (8th grade)</div><div>Instructor at Mesa Verde Middle School</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Nov 6, 2012 at 5:35 AM, Wendy Evans <span dir="ltr">&lt;<a href="mailto:wendy_evans@cvsd.k12.pa.us" target="_blank">wendy_evans@cvsd.k12.pa.us</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I tell my students to imagine a wall full of little boxes. Each box, we can label with a name (the variable name), that way we know where to find it. Then, I explain how that little box can be empty (null) or it can hold a value. What type of value depends on us and how we define it (number, string, Boolean…).  We can store something in the box, like a number, and then we can add to it, subtract from it etc… It can start with a value in it, or we can ask the user to put something in it.  The box (variable) name doesn’t change, but what is stored in the box (variable) changes throughout the program as we need it to. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Lucida Handwriting&quot;;color:#1f497d">Miss Wendy Sue Evans<u></u><u></u></span></b></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Comic Sans MS&quot;;color:#1f497d">Conestoga Valley High School<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Comic Sans MS&quot;;color:#1f497d">Math and Computer Science Teacher<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> alice-teachers-bounces+wendy_evans=<a href="mailto:cvsd.k12.pa.us@lists.andrew.cmu.edu" target="_blank">cvsd.k12.pa.us@lists.andrew.cmu.edu</a> [mailto:<a href="mailto:alice-teachers-bounces%2Bwendy_evans" target="_blank">alice-teachers-bounces+wendy_evans</a>=<a href="mailto:cvsd.k12.pa.us@lists.andrew.cmu.edu" target="_blank">cvsd.k12.pa.us@lists.andrew.cmu.edu</a>] <b>On Behalf Of </b>EILEEN PELUSO<br>
<b>Sent:</b> Tuesday, November 06, 2012 8:06 AM<br><b>To:</b> Alice educators<br><b>Subject:</b> Re: alice-teacher Variables<u></u><u></u></span></p></div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">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.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:alice-teachers-bounces+pelusoem=lycoming.edu@lists.andrew.cmu.edu" target="_blank">alice-teachers-bounces+pelusoem=lycoming.edu@lists.andrew.cmu.edu</a> [<a href="mailto:alice-teachers-bounces+pelusoem=lycoming.edu@lists.andrew.cmu.edu" target="_blank">mailto:alice-teachers-bounces+pelusoem=lycoming.edu@lists.andrew.cmu.edu</a>] <b>On Behalf Of </b>Prem Pathuri<br>
<b>Sent:</b> Monday, November 05, 2012 11:24 PM<br><b>To:</b> Alice educators<br><b>Subject:</b> alice-teacher Variables<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">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?<u></u><u></u></p>
<div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">
Prem Pathuri<u></u><u></u></p></div></div></div></div></div><br>_______________________________________________<br>
alice-teachers mailing list<br>
<a href="mailto:alice-teachers@lists.andrew.cmu.edu">alice-teachers@lists.andrew.cmu.edu</a><br>
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a><br>
<br></blockquote></div><br></div>