<snapdata remixID="14011335"><project name="Lab 13 Bredeson" app="Snap! 10.1-dev, https://snap.berkeley.edu" version="2"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAAAXNSR0IArs4c6QAAAnpJREFUeF7t17Fpw1AARdFv7WJN4EVcawrPJZeeR3u4kiGQkCYJaXxBHLUSPHT/AaHTvu/7cCkQFTgBGJU3+1EAQBDSAgCm+Y0DyEBaAMA0v3EAGUgLAJjmNw4gA2kBANP8xgFkIC0AYJrfOIAMpAUATPMbB5CBtACAaX7jADKQFgAwzW8cQAbSAgCm+Y0DyEBaAMA0v3EAGUgLAJjmNw4gA2kBANP8xgFkIC0AYJrfOIAMpAUATPMbB5CBtACAaX7jADKQFgAwzW8cQAbSAgCm+Y0DyEBaAMA0v3EAGUgLAJjmNw4gA2kBANP8xgFkIC0AYJrfOIAMpAUATPMbB5CBtACAaX7jADKQFgAwzW8cQAbSAgCm+Y0DyEBaAMA0v3EAGUgLAJjmNw4gA2kBAH/If7lcxu12G8uypAd09HEAfznh6/X6dXfbtnG/38f5fD66ibe+H4B/5P6O8PPRaZrG8/kcj8fjrYd1xDEAAUxdA/iPT/C6rmOe5/TAjjYOoJ+Q1DSAaX7jADKQFgAwzW8cQAbSAgCm+Y0DyEBaAMA0v3EAGUgLAJjmNw4gA2kBANP8xgFkIC0AYJrfOIAMpAUATPMbB5CBtACAaX7jADKQFgAwzW8cQAbSAgCm+Y0DyEBaAMA0v3EAGUgLAJjmNw4gA2kBANP8xgFkIC0AYJrfOIAMpAUATPMbB5CBtACAaX7jADKQFgAwzW8cQAbSAgCm+Y0DyEBaAMA0v3EAGUgLAJjmNw4gA2kBANP8xgFkIC0AYJrfOIAMpAUATPMbB5CBtACAaX7jADKQFgAwzW8cQAbSAgCm+Y0DyEBaAMA0v3EAGUgLAJjmN/4C1wn8qIbHiI0AAAAASUVORK5CYII=</thumbnail><scenes select="1"><scene name="Lab 13 Bredeson"><notes></notes><hidden></hidden><headers></headers><code></code><blocks><block-definition s="sum %&apos;list&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%l" initial="1"></input></inputs><script><block s="doReport"><block s="reportCombine"><block var="list"/><block s="reifyReporter"><autolambda><block s="reportVariadicSum"><list><l></l><l></l></list></block></autolambda><list></list></block><comment w="90" collapsed="true">adds everything in a list together</comment></block></block></script></block-definition><block-definition s="average %&apos;list&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%l" initial="1"></input></inputs><script><block s="doReport"><block s="reportQuotient"><block s="reportCombine"><block var="list"/><block s="reifyReporter"><autolambda><block s="reportVariadicSum"><list><l></l><l></l></list></block></autolambda><list></list></block></block><block s="reportListAttribute"><l><option>length</option></l><block var="list"/></block><comment w="90" collapsed="true">adds everything together and then divides by the length of that list...how averages work</comment></block></block></script></block-definition><block-definition s="includes negative %&apos;list&apos;" type="predicate" category="operators"><header></header><code></code><translations></translations><inputs><input type="%l" initial="1"></input></inputs><script><block s="doFor"><l>i</l><l>1</l><block s="reportListAttribute"><l><option>length</option></l><block var="list"/></block><script><block s="doIf"><block s="reportVariadicLessThan"><list><block s="reportListItem"><block var="i"/><block var="list"/></block><l>0</l></list><comment w="90" collapsed="true">if there is an item that is less than 0, then it will report true, if not it will report false</comment></block><script><block s="doReport"><block s="reportBoolean"><l><bool>true</bool></l></block></block></script><list></list></block></script><comment w="90" collapsed="true">so it runs through everything in the list</comment></block><block s="doReport"><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></block-definition><block-definition s="maximum %&apos;list&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%l" initial="1"></input></inputs><script><block s="doSetVar"><l>max</l><l>0</l><comment w="90" collapsed="true">so it starts with nothing</comment></block><block s="doFor"><l>i</l><l>1</l><block s="reportListAttribute"><l><option>length</option></l><block var="list"/></block><script><block s="doIf"><block s="reportVariadicGreaterThan"><list><block s="reportListItem"><block var="i"/><block var="list"/></block><block var="max"/></list><comment w="90" collapsed="true">if there is an item that is greater than the previous max, then it will replace the max to become the new max</comment></block><script><block s="doSetVar"><l>max</l><block s="reportListItem"><block var="i"/><block var="list"/></block></block></script><list></list></block></script><comment w="90" collapsed="true">runs through everything</comment></block><block s="doReport"><block var="max"/></block></script></block-definition><block-definition s="increasing? %&apos;list&apos;" type="predicate" category="operators"><header></header><code></code><translations></translations><inputs><input type="%l" initial="1"></input></inputs><script><block s="doFor"><l>i</l><l>1</l><block s="reportListAttribute"><l><option>length</option></l><block var="list"/></block><script><block s="doIf"><block s="reportVariadicGreaterThan"><list><block s="reportListItem"><block s="reportDifference"><block var="i"/><l>1</l></block><block var="list"/></block><block s="reportListItem"><block var="i"/><block var="list"/></block></list><comment w="90" collapsed="true">goes through the previous number in the list and sees if it s greater than the one it has right now. if it is, then it will report false, if not, then it will report true</comment></block><script><block s="doReport"><block s="reportBoolean"><l><bool>false</bool></l></block></block></script><list></list></block></script><comment w="90" collapsed="true">runs through everything</comment></block><block s="doReport"><block s="reportBoolean"><l><bool>true</bool></l></block></block></script></block-definition><block-definition s="make all positive %&apos;list&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%l" initial="1"></input></inputs><script><block s="doSetVar"><l>list</l><block s="reportMonadic"><l><option>abs</option></l><block var="list"/></block><comment w="90" collapsed="true">uses absolute value to all the numbers in the list</comment></block><block s="doReport"><block var="list"/></block></script></block-definition><block-definition s="only evens %&apos;list&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%l" initial="1"></input></inputs><script><block s="doDeclareVariables"><list><l>evens</l></list></block><block s="doSetVar"><l>evens</l><block s="reportNewList"><list></list></block><comment w="90" collapsed="true">no it makes its own list</comment></block><block s="doFor"><l>i</l><l>1</l><block s="reportListAttribute"><l><option>length</option></l><block var="list"/></block><script><block s="doIf"><block s="reportVariadicEquals"><list><block s="reportModulus"><block s="reportListItem"><block var="i"/><block var="list"/></block><l>2</l></block><l>0</l></list><comment w="90" collapsed="true">finds if they are even or not by using the mod block, then it will add it to the list if even</comment></block><script><block s="doAddToList"><block s="reportListItem"><block var="i"/><block var="list"/></block><block var="evens"/></block></script><list></list></block></script><comment w="90" collapsed="true">goes through all of the list</comment></block><block s="doReport"><block var="evens"/></block></script></block-definition><block-definition s="add all of %&apos;list 1&apos; and %&apos;list 2&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%l" initial="1"></input><input type="%l" initial="1"></input></inputs><script><block s="doSetVar"><l>list 3</l><block s="reportNewList"><list></list></block><comment w="90" collapsed="true">makes a new list</comment></block><block s="doFor"><l>i</l><l>1</l><block s="reportVariadicOr"><list><block s="reportListAttribute"><l><option>length</option></l><block var="list 1"/></block><block s="reportListAttribute"><l><option>length</option></l><block var="list 2"/></block></list></block><script><block s="doAddToList"><block s="reportVariadicSum"><list><block s="reportListItem"><block var="i"/><block var="list 1"/></block><block s="reportListItem"><block var="i"/><block var="list 2"/></block></list></block><block var="list 3"/><comment w="90" collapsed="true">adds each one by one</comment></block></script><comment w="90" collapsed="true">so if there are more in one than another list, then those numbers will still be in there</comment></block><block s="doReport"><block var="list 3"/></block></script></block-definition></blocks><primitives></primitives><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" id="251"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAAAXNSR0IArs4c6QAADoVJREFUeF7t1cEJAAAIxDDdf2m3sJ+4wEEQuuMIECBAgACBd4F9XzRIgAABAgQIjAB7AgIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAA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gIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECByxcQFpoRMBzwAAAABJRU5ErkJggg==</pentrails><costumes><list struct="atomic" id="252"></list></costumes><sounds><list struct="atomic" id="253"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites select="1"><sprite name="Sprite" 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="258"><costumes><list struct="atomic" id="259"></list></costumes><sounds><list struct="atomic" id="260"></list></sounds><blocks></blocks><variables></variables><scripts><script x="49.91525423728812" y="36.084745762711904"><custom-block s="sum %l"><l/></custom-block></script><script x="52.45762711864405" y="67.44067796610173"><custom-block s="average %l"><l/></custom-block></script><script x="42.288135593220325" y="106.8248587570622"><custom-block s="includes negative %l"><l/></custom-block></script><script x="52.45762711864405" y="140.32203389830502"><custom-block s="maximum %l"><l/></custom-block></script><script x="51.610169491525404" y="175.06779661016944"><custom-block s="increasing? %l"><l/></custom-block></script><script x="47.372881355932186" y="215.0395480225987"><custom-block s="make all positive %l"><l/></custom-block></script><script x="43.13559322033897" y="253.0338983050847"><custom-block s="only evens %l"><l/></custom-block></script><script x="42.288135593220325" y="292.86440677966095"><custom-block s="add all of %l and %l"><l/><l/></custom-block></script><comment x="335.3094208280919" y="23.830508474576302" w="90" collapsed="false">Comments inside all of the blocks</comment><script x="311.4022956460209" y="111.81355932203385"><block s="reportNewList"><list><l>28</l><l>30</l><l>209</l><l>500</l></list></block></script><script x="297.2464066844875" y="145.71186440677963"><block s="reportNewList"><list><l>28</l><l>27</l><l>-209</l><l>500</l><l>0.70</l></list></block></script></scripts></sprite><watcher var="max" style="normal" x="10" y="10" color="243,118,29" hidden="true"/><watcher var="evens" style="normal" x="10" y="34.30000199999999" color="243,118,29" hidden="true"/><watcher var="list 1" style="normal" x="10" y="58.600004" color="243,118,29" hidden="true"/><watcher var="list 2" style="normal" x="10" y="82.900006" color="243,118,29" hidden="true"/><watcher var="list 3" style="normal" x="10" y="107.20000800000003" color="243,118,29" hidden="true"/></sprites></stage><variables><variable name="max"><l>209</l></variable><variable name="evens"><list struct="atomic" id="302"></list></variable><variable name="list 1"><l>0</l></variable><variable name="list 2"><l>0</l></variable><variable name="list 3"><list struct="atomic" id="303">56,54,-418,1000,0.7</list></variable></variables></scene></scenes></project><media name="Lab 13 Bredeson" app="Snap! 10.1-dev, https://snap.berkeley.edu" version="2"></media></snapdata>