<snapdata remixID="9277624"><project name="Lab 4.3 " app="Snap! 5.4, http://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAAAXNSR0IArs4c6QAADaNJREFUeAHtnQtwVNUZx/+72WRDQrKBBATChiQkbSxWxVpeFtEO9CE4VSrSlinTKdpai9axOGMU2nFqdKydjrRqfY2tdlqnDJ2CbXUEUSANPuqDDoQSEsI7BhJCwm6yCcnu7fede+9mWR4eHc/M1vsd2D33nvvd79z7u//5zuPevfFZlBq2NcAPH0pLJ4IyShZlaoGWONGyj5Z4xUdbVKEFyzahdR9tciy5jNdde2d3LlOb2E7tR1+0eOTwISRo4YpZV7ClJI8R8Dc0NKB04kRMKC3Fxlc3kigsrF37VyQoT1gJlVuU03/aZOHvL76IOElmw8aNsOJUHrcQ5+20jY3iCXs/JGgHWmaRsS/2kbBoT7ajbQn6cBnXy/XzcUjyHgHf9u3brVAoRDqxUFlRiX37WlFR8Q0iEUT2VTdgEO1offZ2VFZyWTV9htDauprWK7C3qRF/XDAdbc1RbK2pgW/3bhSRxRv0GU7zsa/1t6xDShQFVWSk6GeHUVXGW7p7unHpJZfyoiQPEfAXFBTY0YijFaXnn3uevoNYvHIxBjdvw+dnzlaRClctovKDyJ3yVYp/FN0wH4s/OwWbSXz9tBaJRGCRCE/Qh9PCi6agsLCQlv6pmlg3QtqBkaImR0r1saNhYQHbSvIaAV9Lcwspz+7P+ensVe+PSyhIcTPp81PvkJtNtQ74qQ+okpOp/p7ai0up0MdtNfcJ42SbpZpcH+3DLtyop3qDap3KOKcvrq9qchWvSPIQgQD3ybhZtBI+5FM0jA/G0HnsqHEEHe1tmEQR1LJI4E79xiuVCjKOQEANMJwo9OjiC3HX9JFYN/5HmD1rJkLjK7jXpoIU5zRsoKhG50D2ahcOeCraqbWUk6N1tuMvCogcNLmP2fPBAdQ3vIGlRx9DJW0dOf8g9uzZY0dH22OKD1n0AgESIImD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igxM0NABGiGq3jVJCAC1AQlZmYIiADNcBWvmgREgJqgxMwMARGgGa7iVZOACFATlJiZISACNMNVvGoSEAFqghIzMwREgGa4ildNAiJATVBiZoaACNAMV/GqSUAEqAlKzMwQEAGa4SpeNQmIADVBiZkZAiJAM1zFqyYBEaAmKDEzQ0AEaIareNUkIALUBCVmZgiIAM1wFa+aBESAmqDEzAwBEaAZruJVk4AIUBOUmJkhIAI0w1W8ahIQAWqCEjMzBESAZriKV00CIkBNUGJmhoAI0AxX8apJQASoCUrMzBAQAZrhKl41CYgANUGJmRkCIkAzXMWrJgERoCYoMTNDQARohqt41SQgAtQEJWZmCIgAzXAVr5oERICaoMTMDAERoBmu4lWTgAhQE5SYmSEgAjTDVbxqEhABaoISMzMERIBmuIpXTQL/AzOJTTj6GTHxAAAAAElFTkSuQmCC</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" codify="false" inheritance="true" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAAAXNSR0IArs4c6QAAC99JREFUeAHt0DEBAAAAwqD1T20MH4hAYcCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgw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YMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBj4DAyN/gABHhb3AgAAAABJRU5ErkJggg==</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="1" x="-1.764705882351791" y="5.294117647058783" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="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="19" y="10"><block s="receiveGo"></block><block s="doSetVar"><l>List of Names</l><block s="reportNewList"><list><l>Eric</l><l>Sally</l><l>Michelle</l><l>John</l><l>Sam</l><l>Caleb</l></list></block></block><block s="doDeclareVariables"><list><l>index</l></list><comment w="223" collapsed="true">1b - Write a SNAP script to welcome each person to the program by name, one at a time. (For example, &quot;Welcome, Eric.&quot; &quot;Welcome, Sally.&quot; &quot;Welcome, Michelle.&quot;...) Make sure not to modify the list of names when you run the script—you&apos;ll want the list again later. Also make sure your script still works even if the list of names changes.</comment></block><block s="doSetVar"><l>index</l><l>1</l></block><block s="doRepeat"><block s="reportListLength"><block var="List of Names"/></block><script><block s="doSayFor"><block s="reportJoinWords"><list><l>Welcome </l><block s="reportListItem"><block var="index"/><block var="List of Names"/></block></list></block><l>1</l></block><block s="doChangeVar"><l>index</l><l>1</l></block></script></block></script><comment x="13" y="407.00000000000034" w="486" collapsed="true">1.c - BONUS: Modify your code so that instead of using a pre-determined list of names, the user can enter the names to be included in the list one at a time. You&apos;ll need to decide how to determine when the user has entered all the names.</comment><script x="14" y="969.9999999999984"><block s="receiveKey"><l><option>3</option></l><comment w="201" collapsed="false">2c Write a script so that when the following key is pressed, the corresponding subset of names from the list is said one at a time. &#xD;&#xD;&apos;End with the letter &apos;y&apos;&quot;</comment></block><block s="doSetVar"><l>List of Names</l><block s="reportNewList"><list><l>Eric</l><l>Sally</l><l>Michelle</l><l>John</l><l>Sam</l><l>Caleb</l></list></block></block><block s="doDeclareVariables"><list><l>index</l></list></block><block s="doSetVar"><l>index</l><l>1</l></block><block s="doUntil"><block s="reportGreaterThan"><block var="index"/><l>2</l></block><script><block s="doIf"><block s="reportEquals"><block s="reportLetter"><l><option>last</option></l><block s="reportListItem"><block var="index"/><block var="List of Names"/></block></block><l>y</l></block><script><block s="doSayFor"><block s="reportJoinWords"><list><l>Welcome </l><block s="reportListItem"><block var="index"/><block var="List of Names"/></block></list></block><l>1</l></block></script></block><block s="doChangeVar"><l>index</l><l>1</l></block></script></block></script><script x="478.9999999999998" y="1118.0000000000036"><block s="reportListLength"><l/></block></script><script x="487.9999999999998" y="1157.0000000000057"><block s="reportDifference"><l></l><l></l></block></script><script x="474" y="946.9999999999982"><block s="reportListItem"><l>1</l><l/></block></script><script x="464" y="908.999999999997"><block s="reportUnicodeAsLetter"><l></l></block></script><script x="10" y="210.00000000000023"><block s="receiveKey"><l><option>space</option></l><comment w="190" collapsed="true">2a - Write a script that says every other name in a list one at a time when the space bar is pressed. Use the same list of names from above. For example, if the list is [Eric, Sally, Michelle, John, Sam, Caleb], the names Eric, Michelle, and Sam would be said.</comment></block><block s="doSetVar"><l>List of Names</l><block s="reportNewList"><list><l>Eric</l><l>Sally</l><l>Michelle</l><l>John</l><l>Sam</l><l>Caleb</l></list></block></block><block s="doDeclareVariables"><list><l>index</l></list></block><block s="doSetVar"><l>index</l><l>1</l></block><block s="doRepeat"><block s="reportQuotient"><block s="reportListLength"><block var="List of Names"/></block><l>2</l></block><script><block s="doSayFor"><block s="reportJoinWords"><list><l>Welcome </l><block s="reportListItem"><block var="index"/><block var="List of Names"/></block></list></block><l>1</l></block><block s="doChangeVar"><l>index</l><l>2</l></block></script></block></script><script x="20" y="483.99999999999864"><block s="receiveKey"><l><option>0</option></l><comment w="190" collapsed="true">2b - Write a script that says the names in the list one at a time in reverse order when the &apos;0&apos; key is pressed. For example, if the list is [Eric, Sally, Michelle, John, Sam, Caleb], the names Caleb, Sam, John, Michelle, Sally, and Eric would be said..</comment></block><block s="doSetVar"><l>List of Names</l><block s="reportNewList"><list><l>Eric</l><l>Sally</l><l>Michelle</l><l>John</l><l>Sam</l><l>Caleb</l></list></block></block><block s="doDeclareVariables"><list><l>index</l></list></block><block s="doSetVar"><l>index</l><l>6</l></block><block s="doRepeat"><block s="reportListLength"><block var="List of Names"/></block><script><block s="doSayFor"><block s="reportJoinWords"><list><l>Welcome </l><block s="reportListItem"><block var="index"/><block var="List of Names"/></block></list></block><l>1</l></block><block s="doChangeVar"><l>index</l><l>-1</l></block></script></block></script><script x="632.9999999999984" y="759.9999999999955"><block s="reportGreaterThan"><l></l><l></l></block></script><script x="920.4794931874987" y="561.0000009999965"><block s="reportEquals"><l></l><l></l></block></script><script x="604.9999999999986" y="315.0000000000008"><block s="receiveKey"><l><option>1</option></l><comment w="201" collapsed="false">2c Write a script so that when the following key is pressed, the corresponding subset of names from the list is said one at a time.&#xD;&#xD;&quot;Have more than four letters&quot;</comment></block><block s="doSetVar"><l>List of Names</l><block s="reportNewList"><list><l>Eric</l><l>Sally</l><l>Michelle</l><l>John</l><l>Sam</l><l>Caleb</l></list></block></block><block s="doDeclareVariables"><list><l>index</l></list></block><block s="doSetVar"><l>index</l><l>1</l></block><block s="doUntil"><block s="reportGreaterThan"><block var="index"/><l>6</l></block><script><block s="doIf"><block s="reportLessThan"><l>4</l><block s="reportStringSize"><block s="reportListItem"><block var="index"/><block var="List of Names"/></block></block></block><script><block s="doSayFor"><block s="reportJoinWords"><list><l>Welcome </l><block s="reportListItem"><block var="index"/><block var="List of Names"/></block></list></block><l>1</l></block></script></block><block s="doChangeVar"><l>index</l><l>1</l></block></script></block></script><script x="542" y="756.9999999999955"><block s="doIf"><l/><script></script></block></script><script x="863.1191416249999" y="440.0000029999994"><block var="name"/></script><script x="899.751958124998" y="428.000007"><block var="name"/></script><script x="1144.4228535625025" y="637.000004999996"><block var="List of Names"/></script><script x="815.9433603749981" y="628.0000019999959"><block s="reportListLength"><l/></block></script><script x="270.6416035624995" y="938.000001999997"><block s="reportLessThan"><l>4</l><l></l></block></script><script x="488.3164072499999" y="850.0000019999964"><block s="reportStringSize"><l></l></block></script><script x="540.2597676249998" y="812.0000039999961"><block s="reportTextSplit"><l></l><l><option>letter</option></l></block></script><script x="59.99999999999949" y="709.9999999999955"><block s="receiveKey"><l><option>2</option></l><comment w="201" collapsed="false">2c Write a script so that when the following key is pressed, the corresponding subset of names from the list is said one at a time. &#xD;&#xD;&quot;Start with the letter &apos;c&apos; &quot;</comment></block><block s="doSetVar"><l>List of Names</l><block s="reportNewList"><list><l>Eric</l><l>Sally</l><l>Michelle</l><l>John</l><l>Sam</l><l>Caleb</l></list></block></block><block s="doDeclareVariables"><list><l>index</l></list></block><block s="doSetVar"><l>index</l><l>1</l></block><block s="doUntil"><block s="reportGreaterThan"><block var="index"/><l>2</l></block><script><block s="doIf"><block s="reportEquals"><block s="reportLetter"><l>1</l><block s="reportListItem"><block var="index"/><block var="List of Names"/></block></block><l>c</l></block><script><block s="doSayFor"><block s="reportJoinWords"><list><l>Welcome </l><block s="reportListItem"><block var="index"/><block var="List of Names"/></block></list></block><l>1</l></block></script></block><block s="doChangeVar"><l>index</l><l>1</l></block></script></block></script><script x="28.000000000000057" y="1224.000000000009"><block s="receiveKey"><l><option>5</option></l><comment w="201" collapsed="false">2c OPTIONAL&#xD;Write a script so that when the following key is pressed, the corresponding subset of names from the list is said one at a time.&#xD;&#xD;&quot;Contain the letter &apos;e&apos; &quot;</comment></block><block s="doSetVar"><l>List of Names</l><block s="reportNewList"><list><l>Eric</l><l>Sally</l><l>Michelle</l><l>John</l><l>Sam</l><l>Caleb</l></list></block></block><block s="doDeclareVariables"><list><l>index</l></list></block><block s="doSetVar"><l>index</l><l>1</l></block><block s="doUntil"><block s="reportGreaterThan"><block var="index"/><l>6</l></block><script><block s="doIf"><block s="reportOr"><block s="reportEquals"><l>e</l><block s="reportLetter"><l>1</l><block s="reportListItem"><block var="index"/><block var="List of Names"/></block></block></block><block s="reportOr"><block s="reportEquals"><block s="reportLetter"><l>2</l><block s="reportListItem"><block var="index"/><block var="List of Names"/></block></block><l>e</l></block><block s="reportOr"><block s="reportEquals"><block s="reportLetter"><l>3</l><block s="reportListItem"><block var="index"/><block var="List of Names"/></block></block><l>e</l></block><block s="reportOr"><block s="reportEquals"><block s="reportLetter"><l>4</l><block s="reportListItem"><block var="index"/><block var="List of Names"/></block></block><l>e</l></block><block s="reportOr"><block s="reportEquals"><l>e</l><block s="reportLetter"><l>5</l><block s="reportListItem"><block var="index"/><block var="List of Names"/></block></block></block><block s="reportEquals"><block s="reportLetter"><l>6</l><block s="reportListItem"><block var="index"/><block var="List of Names"/></block></block><l>e</l></block></block></block></block></block></block><script><block s="doSayFor"><block s="reportJoinWords"><list><l>welcome </l><block s="reportListItem"><block var="index"/><block var="List of Names"/></block></list></block><l>2</l></block></script></block><block s="doChangeVar"><l>index</l><l>1</l></block></script></block></script><script x="356.0000000000007" y="927"><block s="reportUnicodeAsLetter"><l>121</l></block></script><script x="549.0000000000005" y="1254.000000000006"><block s="reportLessThan"><l></l><block s="reportGreaterThan"><l></l><l></l></block></block></script><script x="564.9999999999986" y="994.0000000000023"><block s="receiveKey"><l><option>4</option></l><comment w="201" collapsed="false">2c Write a script so that when the following key is pressed, the corresponding subset of names from the list is said one at a time. &#xD;&#xD;&quot;Are not the first two or last two names in the list&quot;</comment></block><block s="doSetVar"><l>List of Names</l><block s="reportNewList"><list><l>Eric</l><l>Sally</l><l>Michelle</l><l>John</l><l>Sam</l><l>Caleb</l></list></block></block><block s="doDeclareVariables"><list><l>index</l></list></block><block s="doSetVar"><l>index</l><l>3</l></block><block s="doUntil"><block s="reportGreaterThan"><block var="index"/><l>4</l></block><script><block s="doSayFor"><block s="reportJoinWords"><list><l>Welcome </l><block s="reportListItem"><block var="index"/><block var="List of Names"/></block></list></block><l>1</l></block><block s="doChangeVar"><l>index</l><l>1</l></block></script></block></script></scripts></sprite><watcher var="List of Names" style="normal" x="0.0017413595087418798" y="0.004962874599449663" color="243,118,29" extX="80" extY="70"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="solution to 1.3" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doDeclareVariables"><list><l>index</l><l>complete names</l></list><comment w="90" collapsed="false">1.3 VER. 1</comment></block><block s="doSetVar"><l>index</l><l>1</l></block><block s="doSetVar"><l>complete names</l><l></l></block><block s="doRepeat"><block s="reportDifference"><block s="reportListLength"><block var="names"/></block><l>1</l></block><script><block s="doChangeVar"><l>complete names</l><block s="reportJoinWords"><list><block var="complete names"/><l>, </l><block s="reportListItem"><block var="index"/><block var="names"/></block><l></l></list></block></block><block s="doChangeVar"><l>index</l><l>1</l></block></script></block><block s="doChangeVar"><l>complete names</l><block s="reportJoinWords"><list><block var="complete names"/><l>, and </l><block s="reportListItem"><l><option>last</option></l><block var="names"/></block></list></block></block><block s="doSayFor"><block s="reportJoinWords"><list><l>Welcome</l><block var="complete names"/></list></block><l>2</l></block></script></block-definition><block-definition s="solution to 2.1" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doDeclareVariables"><list><l>index</l></list></block><block s="doSetVar"><l>index</l><l>1</l></block><block s="doUntil"><block s="reportGreaterThan"><block var="index"/><block s="reportListLength"><block var="names"/></block></block><script><block s="doSayFor"><block s="reportListItem"><block var="index"/><block var="names"/></block><l>1</l></block><block s="doChangeVar"><l>index</l><l>2</l></block></script></block></script></block-definition><block-definition s="solution to 2.3 part 1" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doDeclareVariables"><list><l>index</l></list><comment w="90" collapsed="false">2.3, part 1</comment></block><block s="doSetVar"><l>index</l><l>1</l></block><block s="doRepeat"><block s="reportListLength"><block var="names"/></block><script><block s="doIf"><block s="reportGreaterThan"><block s="reportStringSize"><block s="reportListItem"><block var="index"/><block var="names"/></block></block><l>4</l></block><script><block s="doSayFor"><block s="reportListItem"><block var="index"/><block var="names"/></block><l>1</l></block></script></block><block s="doChangeVar"><l>index</l><l>1</l></block></script></block></script></block-definition><block-definition s="solution to 2.3 part 2" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doDeclareVariables"><list><l>index</l></list></block><block s="doSetVar"><l>index</l><l>1</l></block><block s="doRepeat"><block s="reportListLength"><block var="names"/></block><script><block s="doIf"><block s="reportEquals"><block s="reportLetter"><l>1</l><block s="reportListItem"><block var="index"/><block var="names"/></block></block><l>c</l></block><script><block s="doSayFor"><block s="reportListItem"><block var="index"/><block var="names"/></block><l>2</l></block></script></block><block s="doChangeVar"><l>index</l><l>1</l></block></script></block></script></block-definition></blocks><variables><variable name="List of Names"><list struct="atomic" id="658">Eric,Sally,Michelle,John,Sam,Caleb</list></variable></variables></project><media name="Lab 4.3 " app="Snap! 5.4, http://snap.berkeley.edu" version="1"></media></snapdata>