<snapdata remixID="9906429"><project name="UPC code checker - Joshua Donaldson" app="Snap! 6, https://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAAAXNSR0IArs4c6QAAAydJREFUeAHt10EupAEUhdFfp41twW5swcBAJJZhO3ZiM6YGzDRmBjq5ye1c0qdmyst75fhC1cnr2+PwIDAS+DW66yyBDwEBCmEqIMApv+MC1MBUQIBTfscFqIGpgACn/I4LUANTAQFO+R0XoAamAgKc8jsuQA1MBQQ45XdcgBqYCghwyu+4ADUwFRDglN9xAWpgKiDAKb/jAtTAVECAU37HBaiBqYAAp/yOC1ADUwEBTvkdF6AGpgICnPI7LkANTAUEOOV3XIAamAoIcMrvuAA1MBUQ4JTfcQFqYCogwCm/4wLUwFRAgFN+xwWogamAAKf8jgtQA1MBAU75HRegBqYCApzyOy5ADUwFBDjld1yAGpgKCHDK77gANTAVEOCU33EBamAqIMApv+MC1MBUQIBTfscFqIGpgACn/I4LUANTgd/T69/4+P39/fH09HRcXFwc5+fn3/iV/uyXdvL69vjZP8K/efXPz8/Hzc3N8fLycjw+Ph5XV1fHO9Xt7e1xenr6b47+h1sF+Jdf+sPDw3F3d3ecnZ19mnqP8/r6+uO5y8vLT9/zRSbgPWDmZbos4C/gF6D+BX8BU35agF+A+hDyBUz5aQGWQa3LBLwHzLxMlwUEWAa1LhMQYOZluiwgwDKodZmAADMv02UBAZZBrcsEBJh5mS4LCLAMal0mIMDMy3RZQIBlUOsyAQFmXqbLAgIsg1qXCQgw8zJdFhBgGdS6TECAmZfpsoAAy6DWZQICzLxMlwUEWAa1LhMQYOZluiwgwDKodZmAADMv02UBAZZBrcsEBJh5mS4LCLAMal0mIMDMy3RZQIBlUOsyAQFmXqbLAgIsg1qXCQgw8zJdFhBgGdS6TECAmZfpsoAAy6DWZQICzLxMlwUEWAa1LhMQYOZluiwgwDKodZmAADMv02UBAZZBrcsEBJh5mS4LCLAMal0mIMDMy3RZQIBlUOsyAQFmXqbLAgIsg1qXCQgw8zJdFhBgGdS6TECAmZfpsoAAy6DWZQICzLxMlwUEWAa1LhMQYOZluiwgwDKodZmAADMv02UBAZZBrcsEBJh5mS4LCLAMal0m8AfANEvVupofOAAAAABJRU5ErkJggg==</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,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAAAXNSR0IArs4c6QAAC99JREFUeAHt0DEBAAAAwqD1T20MH4hAYcCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYM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CAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBj4DAyN/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="Scanner" idx="1" x="0" y="0" 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="43" y="24.999999999999744"><block s="receiveGo"></block><custom-block s="UPC code"></custom-block><custom-block s="Step 1 and 2"></custom-block><custom-block s="Step 3"></custom-block><custom-block s="Step 4"></custom-block><custom-block s="Step 5"></custom-block><custom-block s="Step 6"></custom-block></script></scripts></sprite><watcher var="code" style="normal" x="10" y="10" color="243,118,29" hidden="true"/><watcher var="UPC" style="normal" x="10" y="31.000001999999995" color="243,118,29" extX="91" extY="228" hidden="true"/><watcher var="sumEven" style="normal" x="232" y="10.000005999999985" color="243,118,29" hidden="true"/><watcher var="sumOdd" style="normal" x="340" y="11.00000399999999" color="243,118,29" hidden="true"/><watcher var="total" style="normal" x="139" y="42.00000399999999" color="243,118,29" hidden="true"/><watcher var="Index" style="normal" x="135" y="10.00000399999999" color="243,118,29" hidden="true"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="Step 1 and 2" type="command" category="operators"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>Index</l><l>1</l></block><block s="doSetVar"><l>sumOdd</l><l>0</l></block><block s="doRepeat"><block s="reportListLength"><block var="UPC"/></block><script><block s="doIf"><block s="reportNot"><block s="reportEquals"><block s="reportModulus"><block var="Index"/><l>2</l></block><l>0</l></block></block><script><block s="doSetVar"><l>sumOdd</l><block s="reportSum"><block var="sumOdd"/><block s="reportListItem"><block var="Index"/><block var="UPC"/></block></block></block></script></block><block s="doChangeVar"><l>Index</l><l>1</l></block></script></block><block s="doSetVar"><l>sumOdd</l><block s="reportProduct"><block var="sumOdd"/><l>3</l></block></block></script></block-definition><block-definition s="Step 3" type="command" category="operators"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>Index</l><l>1</l></block><block s="doSetVar"><l>sumEven</l><l>0</l></block><block s="doRepeat"><block s="reportListLength"><block var="UPC"/></block><script><block s="doIf"><block s="reportEquals"><block s="reportModulus"><block var="Index"/><l>2</l></block><l>0</l></block><script><block s="doSetVar"><l>sumEven</l><block s="reportSum"><block var="sumEven"/><block s="reportListItem"><block var="Index"/><block var="UPC"/></block></block></block></script></block><block s="doChangeVar"><l>Index</l><l>1</l></block></script></block><block s="doSetVar"><l>sumEven</l><block s="reportDifference"><block var="sumEven"/><block s="reportListItem"><l><option>last</option></l><block var="UPC"/></block></block></block></script></block-definition><block-definition s="Step 4" type="command" category="operators"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>total</l><block s="reportSum"><block var="sumEven"/><block var="sumOdd"/></block></block></script></block-definition><block-definition s="Step 5" type="command" category="operators"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>total</l><block s="reportSum"><block var="total"/><block s="reportListItem"><l><option>last</option></l><block var="UPC"/></block></block></block></script></block-definition><block-definition s="Step 6" type="command" category="operators"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doIfElse"><block s="reportEquals"><block s="reportModulus"><block var="total"/><l>10</l></block><l>0</l></block><script><block s="doSayFor"><l>Your UPC code is valid!</l><l>2</l></block></script><script><block s="doSayFor"><l>Your UPC code is invalid</l><l>2</l></block></script></block></script></block-definition><block-definition s="UPC code" type="command" category="operators"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doAsk"><l>Please enter the UPC code</l></block><block s="doSetVar"><l>code</l><block s="getLastAnswer"></block></block><block s="doSetVar"><l>UPC</l><block s="reportNewList"><list></list></block></block><block s="doFor"><l>i</l><l>1</l><block s="reportStringSize"><block var="code"/></block><script><block s="doAddToList"><block s="reportLetter"><block var="i"/><block var="code"/></block><block var="UPC"/></block></script></block></script></block-definition></blocks><variables><variable name="code"><l>044000058005</l></variable><variable name="UPC"><list struct="atomic" id="185">0,4,4,0,0,0,0,5,8,0,0,5</list></variable><variable name="sumEven"><l>9</l></variable><variable name="sumOdd"><l>36</l></variable><variable name="total"><l>50</l></variable><variable name="Index"><l>13</l></variable></variables></project><media name="UPC code checker - Joshua Donaldson" app="Snap! 6, https://snap.berkeley.edu" version="1"></media></snapdata>