<snapdata remixID="9579793"><project name="lab 2.4" app="Snap! 6, https://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAADp0lEQVR4nO3YwUtsZRyH8bntgmhg8iIEEgRt2gS2uP0HgrQSF7coZlFcaFWroI1iMCAiMRC0cOHKTRvDBg1GmYaUoxyPCAdEZRx04ZGjB9xkNkj5beVwreneJqa+eXs+8IPhcN7h5cezmckJMMq5L4D/NwKEFQHCigBhdSvApaUl7e3t/adnfn7etSv8A9oB7uzsWIL6/sNX9cN7faq/f/+Jc/TxK+0zYRg6d4YeyklSGIaK4/ipMz4+/pfeazQa7c8HBweK41gLCwsd3/1m9CX9+OlAe36e/0yXcx/denYzj5/Lssy9O/RATpLm5uYURZGiKFKpVNLR0ZHK5bK2t7cVhqGSJFGWZZqcnFSSJBobG1M+n9fo6KhOTk4URZGmp6eVpqmyLNPp6amiKNLm5qbSNNXFxYWKxaLy+bxKpZKGhoZ0dnamKIr03Tv3b0XWqnyuX7PDjgHe3DGKIm1tbbl3hx7ISdLq6qqCIFAQBJqYmNDGxob29/c1PDys9fV17e7uqtlsampqSn19fWo2m+rv79fIyEj73NramgqFgs7Pz3V8fNx+Pjs7qyRJVCwWNTAwoFarpUKhoMvLSwVB8IcAf/rybf2yX+8Y4M13BkGgNE3du0MP5CTp+vpa9Xr9b02tVlOj0dDh4eETn/3ZxI/6O8bWaW7OLC4uuveGHmn/CGm1WpqZmVG1Wv1XZ3l5WbVa7amzsrKiarWqcrmsq6sr587QQ/wPCCsChBUBwooAYUWAsCJAWBEgrAgQVgQIKwKEFQHCigBhRYCwIkBYESCsCBBWBAgrAoQVAcKKAGFFgLAiQFgRIKwIEFYECCsChBUBwooAYUWAsCJAWBEgrAgQVgQIKwKEFQHCigBhRYCwIkBYESCsCBBWBAgrAoQVAcKKAGFFgLAiQFgRIKwIEFYECCsChBUBwooAYUWAXbhXGdRrD990X+OZQoBdylUG2/PC1w/0wSeP3Fe60wiwS9NffXErwsfnxdIb7uvdOQTYpd9Hd68yqNfffeC+1p1FgF14/tu3lKsM6rmHLyuOY/d1ngkECCsChBUBwooAYUWAsCJAWBEgrAgQVgQIKwKEFQHCigBhRYCwIkBYESCsCBBWBAgrAoQVAcKKAGFFgLAiQFgRIKwIEFYECCsChBUBwooAYUWAsCJAWBEgrAgQVgQIKwKEFQHCigBhRYCwIkBYESCsCBBWBAgrAoQVAcKKAGFFgLAiQFgRIKwIEFYECCsChBUBwuo3iZmuP0svkDIAAAAASUVORK5CYII=</thumbnail><stage name="Stage" width="480" height="360" costume="0" color="255,255,255,1" tempo="60" threadsafe="false" penlog="false" volume="100" pan="0" lines="round" ternary="false" hyperops="true" codify="false" inheritance="true" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAACtUlEQVR4nO3BMQEAAADCoPVPbQwfoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+Bo3+AAF/RMkcAAAAAElFTkSuQmCC</pentrails><costumes><list struct="atomic" id="2"></list></costumes><sounds><list struct="atomic" id="3"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites><sprite name="Sprite" idx="2" x="-203" y="62" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" hidden="true" costume="0" color="80,80,80,1" pen="tip" id="8"><costumes><list struct="atomic" id="9"></list></costumes><sounds><list struct="atomic" id="10"></list></sounds><blocks></blocks><variables></variables><scripts><script x="46" y="165.16666666666666"><block s="doSetVar"><l>var1</l><l>cat</l></block><block s="doSetVar"><l>var2</l><block var="var1"/></block><block s="doSayFor"><block s="reportJoinWords"><list><l>The value of var1 is </l><block var="var1"/></list></block><l>2</l></block><block s="doSayFor"><block s="reportJoinWords"><list><l>The value of var2 is </l><block var="var2"/></list></block><l>2</l></block><block s="doSetVar"><l>var2</l><l>dog</l></block><block s="doSayFor"><block s="reportJoinWords"><list><l>The value of var2 is </l><block var="var2"/></list></block><l>2</l></block><block s="doSayFor"><block s="reportJoinWords"><list><l>The value of var1 is </l><block var="var1"/></list></block><l>2</l></block></script><script x="62" y="370.66666666666663"><block s="doForever"><script><block s="doSayFor"><l>I&apos;m going to pick a random number between 1 and 10</l><l>2</l></block><block s="doSetVar"><l>random number</l><block s="reportRandom"><l>1</l><l>10</l></block></block><block s="doSayFor"><block s="reportJoinWords"><list><l>The random number is </l><block var="random number"/></list></block><l>2</l></block><block s="doIf"><block s="reportEquals"><block var="random number"/><l>3</l></block><script><block s="doSayFor"><block s="reportEquals"><l>The magic number was </l><block var="random number"/></block><l>2</l></block><block s="doStopThis"><l><option>all</option></l></block></script></block></script></block></script><script x="75" y="37.50000000000003"><block s="doSetVar"><l>my_first_variable</l><l>Hello</l></block><block s="doSayFor"><block var="my_first_variable"/><l>2</l></block><block s="doSetVar"><l>my_first_variable</l><l>bye</l></block><block s="doSayFor"><block var="my_first_variable"/><l>2</l></block></script><script x="406" y="120.16666666666666"><block s="hide"></block></script></scripts></sprite><sprite name="Sprite(2)" idx="1" x="13" y="-20" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="0" color="0,178.5,49.98000000000005,1" pen="tip" id="103"><costumes><list struct="atomic" id="104"></list></costumes><sounds><list struct="atomic" id="105"></list></sounds><blocks></blocks><variables></variables><scripts><script x="403" y="30"><block s="receiveGo"></block><block s="doSetVar"><l>number_of_tries</l><l>0</l></block><block s="doAsk"><l>What&apos;s your name?</l></block><block s="doSetVar"><l>name</l><block s="getLastAnswer"></block></block><block s="doSayFor"><block s="reportJoinWords"><list><l>hello </l><block var="name"/></list></block><l>2</l></block><block s="doSayFor"><l>Think of a number greater than 10.</l><l>2</l></block><block s="doAsk"><l>What is your random number</l></block><block s="doSetVar"><l>highest number</l><block s="getLastAnswer"></block></block><block s="doSetVar"><l>random number</l><block s="reportRandom"><l>1</l><block s="getLastAnswer"></block></block></block><block s="doForever"><script><block s="doAsk"><block s="reportJoinWords"><list><l>quess a number between 1 and </l><block var="highest number"/></list></block></block><block s="doChangeVar"><l>number_of_tries</l><l>1</l></block><block s="doIf"><block s="reportEquals"><block s="getLastAnswer"></block><block var="random number"/></block><script><block s="doSayFor"><block s="reportEquals"><block var="random number"/><block s="getLastAnswer"></block></block><l>3</l></block><block s="doSayFor"><block s="reportJoinWords"><list><l>You guessed it in </l><block var="number_of_tries"/><l> </l><l>tries!</l></list></block><l>2</l></block><block s="doStopThis"><l><option>all</option></l></block></script></block><block s="doSayFor"><block s="reportJoinWords"><list><l>You have used up </l><block var="number_of_tries"/><l>tries!</l></list></block><l>2</l></block><block s="doIfElse"><block s="reportLessThan"><block s="getLastAnswer"></block><block var="random number"/></block><script><block s="doSayFor"><l>Your answer is too small.</l><l>2</l></block></script><script><block s="doSayFor"><l>Your answer is too high.</l><l>2</l></block></script></block></script></block></script></scripts></sprite><watcher var="my_first_variable" style="normal" x="0" y="3" color="243,118,29" hidden="true"/><watcher var="var1" style="normal" x="-1" y="26" color="243,118,29" hidden="true"/><watcher var="var2" style="normal" x="0" y="51" color="243,118,29" hidden="true"/><watcher var="random number" style="normal" x="0" y="77" color="243,118,29" hidden="true"/><watcher var="name" style="normal" x="10" y="10" color="243,118,29" hidden="true"/><watcher var="highest number" style="normal" x="10" y="31.000001999999995" color="243,118,29" hidden="true"/><watcher var="answer" style="normal" x="10" y="52.00000399999999" color="243,118,29" hidden="true"/><watcher var="number_of_tries" style="normal" x="4" y="15.000005999999985" color="243,118,29"/><watcher scope="Stage" s="getLastAnswer" style="normal" x="12" y="115.00000599999998" color="4,148,220" hidden="true"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks></blocks><variables><variable name="my_first_variable"><l>bye</l></variable><variable name="var1"><l>cat</l></variable><variable name="var2"><l>dog</l></variable><variable name="random number"><l>51</l></variable><variable name="name"><l>andrew</l></variable><variable name="highest number"><l>69</l></variable><variable name="answer"><l>1</l></variable><variable name="number_of_tries"><l>5</l></variable></variables></project><media name="lab 2.4" app="Snap! 6, https://snap.berkeley.edu" version="1"></media></snapdata>