<snapdata remixID="9277627"><project name="Lab 4.3 Pre Code" app="Snap! 5.4, http://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAs6SURBVHhe7Z17UFTXHce/lwV5CYqAz4BRjIjy0GhGp8ZHM+ILSWKs0USNqW3iTKzaNq11mqTTNi+1sRNxOo5mJKMzikr8RzOmxVE0xhdJwUJAtBrwxUtBWGB3YRe29/dj77oQiGlscmZ6f5+ZM/fcx94zs/OZc87vnLNnNbdOaWkpbty4gfb2dvzQ+Pn54aGHHkJCQoLnimAmtJKSEndwcDA0TUNhYSGSk5NRVFSEpKQkfuDSpUuIj4/nPLFv3z4sXrwYu3bt4uuTJk3y3HkwbDabSGhC/MrLy6FXglz7Xb16lY8XL17Ejh07UFVVhU2bNvGDdH748GF8+umnsFgsyM3NxQcffACXy4XNmzcjMzMT27dvR0ZGBrKzs3HgwAHOX758GU6n05va2tq4jK6prKyMyxHMhfbxxx+7jZpn48aNWLhwIUsSGBjI1+6Hv78/AvwtcNhtnivdY2tuRmBIb353QEAAYmJiuNY1IOnT0tI8Z4JZ0A4dOuQV8Nq1a9wf+2+4ln8SNft/j4ggP8+VHtBdi3v+TWgjp/Mp1bxxcXGcJ0jA9PR0z5lgFvyo+TWa4IaGBrS2tnLKy8tDTU0N6urqOO3evZuPzXpNZlyj5+6WF+Op+BBMGxrE6YkZqZj1+m7vuTfFBmGI5d77na0tCAoK4rKNJJgPr4DUlyMMQSorKzngyMnJwcGDB9HU1MT9wSNHjmDLli38GXoO7s6RsxYQrL/VAvTSj10wPkMpPMgf9rz9XvkoCebDzwgCqD/W2Gj1CpKYmIiZM2diwoQJHBlTov4hNdfz58/nAIUF7EJ7QyVcJTm6yXbPlXuQY8b7b9dUI7S1rlMgIpgPbw1I3Cz9FxwOBwsSGhqKvn37onfv3hg6dChGjBiBIUOGICoq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vVYm+fg4+r5j1HpdD0Nwz/RRAMBe8Oxbt95Kfn492VytGjvKZB9b56u/7vvWC1GnbjsHabOcAhIZcjCa8OxqtDSj4/BwGxQ7H+PHjMXXqVM8dwUywgJ58D4GAm4dLvg30pO8wSvfv64wMu5ibTgIKwg/NfXYUEoTvFxFQUIoIKChFBBSUIgIKShEBBaWIgIJSREBBKSKgoBQRUFCKCCgoRQQUlCICCkoRAQWliICCUkRAQSkioKAUEVBQiggoKEUEFJQiAgpKEQEFpcjPMrvhxIkTvIMX7dQQHx/vuSp8H4iAPbB27VreWoT2OaQ/7qa/F5s7d26nvx8THhwRsAfoa6F//aSNOg1oZy/ayWHOnDm8h/bs2bP5r8mE7470AXuAROu6bYjFYuFdXwsKCnj3L9p8XXgwpAbsgU2bNvEmnbRvIYlHtR792XZaWhpvxCT8bxABu+Ho0aMoLCzkP+qZN28eb7AufD+IgIJSpC0RlCICCkoRAQWliICCUkRAQSkioKAUEVBQiggoKEUEFJQiAgpKEQEFpYiAglJEQEEpIqCgFBFQUIoIKChFBBSUIgIKShEBBaWIgIJSREBBKSKgoBQRUFCKCCgoRQQUlCICCkoRAQWliICCUkRAQSkioKAUEVBQiggoKEUEFJQiAgpKEQEFpYiAglJEQEEpIqCgFBFQUIoIKChFBBSUIgIKShEBBaWIgIJSREBBKSKgoBQRUFCKCCgoRQQUlCICCkoRAQWliICCUkRAQSkioKAUEVBQiggoKEUEFJQiAgoKAf4DT59dmNu3KJ4AAAAASUVORK5CYII=</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,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAK1SURBVHhe7cExAQAAAMKg9U9tDB8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgIsajf4AAXBXLv8AAAAASUVORK5CYII=</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.9055509527752292" y="5.716652858326455" 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="23" y="891.9999999999972"><block s="receiveKey"><l><option>2</option></l></block><block s="doDeclareVariables"><list><l>index</l><l>name</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="List of Names"/></block></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><block s="reportListItem"><block var="index"/><block var="List of Names"/></block><l> starts with letter c</l></list></block><l>2</l></block></script></block><block s="doChangeVar"><l>index</l><l>1</l></block></script></block></script><script x="411" y="1171.0000000000025"><block s="reportGreaterThan"><l></l><l></l></block></script><script x="491" y="1142.0000000000038"><block s="reportListLength"><l/></block></script><script x="500" y="1181.000000000003"><block s="reportDifference"><l></l><l></l></block></script><script x="27" 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></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><script x="22" y="217"><block s="receiveKey"><l><option>space</option></l></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="doUntil"><block s="reportGreaterThan"><block var="index"/><l>6</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>2</l></block><block s="doChangeVar"><l>index</l><l>2</l></block></script></block></script><script x="23" y="416.00000000000034"><block s="receiveKey"><l><option>0</option></l></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="doUntil"><block s="reportGreaterThan"><block var="index"/><l>6</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>2</l></block><block s="doChangeVar"><l>index</l><l>3</l></block></script></block></script><comment x="722.0000009999999" y="60" w="170.9999999999999" collapsed="false">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><comment x="715.0000009999999" y="170.99999999999977" w="190" collapsed="false">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><comment x="682.0000009999999" y="139.0000000000001" w="170.9999999999999" collapsed="false">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><comment x="691.0000009999999" y="114.00000000000023" w="190" collapsed="false">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><comment x="710.0000009999999" y="159.99999999999954" w="170.9999999999999" collapsed="false">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><comment x="515.0000009999999" y="380.000000999999" w="486" collapsed="false">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="25" y="613.9999999999969"><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><comment w="170.9999999999999" collapsed="false">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="doUntil"><block s="reportGreaterThan"><block var="index"/><l>6</l></block><script><block s="doIf"><block s="reportGreaterThan"><block s="reportStringSize"><block s="reportListItem"><block var="index"/><block var="List of Names"/></block></block><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>2</l></block></script></block><block s="doChangeVar"><l>index</l><l>1</l></block></script></block></script><comment x="429" y="390.9999999999975" 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><script x="279" y="875.000001999997"><block s="reportTextSplit"><l></l><l><option>letter</option></l></block></script><comment x="493" y="825.0000019999973" 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><script x="368" y="920.9999999999991"><block s="reportUnicodeAsLetter"><l></l></block></script><script x="417" y="972.9999999999989"><block s="reportListItem"><l>1</l><l/></block></script><comment x="636" y="958.9999999999989" w="170.9999999999999" collapsed="false">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><script x="439.0478525625" y="947.0000019999991"><block s="reportUnicodeAsLetter"><l>121</l></block></script><script x="252" y="916.000000000004"><block s="reportAnd"><l/><l/></block></script><script x="403" y="1009.0000000000027"><block s="reportLessThan"><l></l><l></l></block></script><script x="398" y="1090.000000000004"><block s="receiveKey"><l><option>5</option></l></block></script><comment x="435" y="1324.000000000003" 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><script x="21" y="1135.999999999993"><block s="receiveKey"><l><option>3</option></l></block><block s="doDeclareVariables"><list><l>index</l><l>name</l></list></block><block s="doSetVar"><l>index</l><l>1</l></block><block s="doUntil"><block s="reportGreaterThan"><block var="index"/><l>y</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><block s="reportListItem"><block var="index"/><block var="List of Names"/></block><l> ends with letter y</l></list></block><l>2</l></block></script></block><block s="doChangeVar"><l>index</l><l>1</l></block></script></block></script><script x="406.1191416249999" y="1198.0000009999921"><block s="reportListLength"><block var="List of Names"/></block></script><comment x="433" y="1324.9999999999993" 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><script x="51" y="1500.999999999999"><block s="receiveKey"><l><option>4</option></l></block><block s="doSayFor"><block s="reportJoinWords"><list><l>welcome </l><l>michelle </l><l>john</l></list></block><l>2</l></block></script><script x="40" y="1410.999999999999"><block s="receiveKey"><l><option>4</option></l></block><block s="doDeclareVariables"><list><l>index</l><l>name</l></list></block><block s="doSetVar"><l>index</l><l>1</l></block><block s="doUntil"><block s="reportGreaterThan"><block var="index"/><l>y</l></block><script><block s="doIf"><block s="reportEquals"><block s="reportLetter"><l></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><l>michelle</l><l> john</l></list></block><l>2</l></block></script></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.0061818262549877545" y="0.017618204828053763" color="243,118,29" extX="80" extY="70"/><watcher var="index" style="normal" x="8.875000000000568" y="8.875000000000007" color="243,118,29"/></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="523">Eric,Sally,Michelle,John,Sam,Caleb</list></variable><variable name="index"><l>8</l></variable></variables></project><media name="Lab 4.3 Pre Code" app="Snap! 5.4, http://snap.berkeley.edu" version="1"></media></snapdata>