<snapdata remixID="9209356"><project name="U5L2-Infection" app="Snap! 5.4, http://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAAAXNSR0IArs4c6QAABV5JREFUeAHt2cFPm3Ucx/Hv05YW7RTQODwYlnBQD4jThIPzIIl/gbuSGM9cdsG78Q8w/gX+BxyIiSa6YLy4ODiYbIk6DhjDQcCAyMqgUOrze0rZOvbxxqeHvpuMts+3z77ZK+88bUfWzm/BDYE+CZT6tJe1CBQCBEgIfRUgwL7ys5wAaaCvAgTYV36WEyAN9FWAAPvKz3ICpIG+ChBgX/lZXnkWwd27P8fo6FhUypVoZ/kvSp74XUmWn5Cedu/T+cXj/EfnpecP8uPZhfPbp+3Y3d2Jt6anY3h4OJ3ObYAFsqd/Fbe8vBwTExN5ZWeZpbrSrYgw/5F1DhTT9LSUxV8Pfonfv/0qmvv/dF4rfo6/di3e/uTzyBuMzc3NmJqaipGREfFqDg+CQE+Ad366EyOjLxbtra6uxMrKamEwPz//hEX77AqYX93ySIeGhuL2rffi4+l68Zrqh7fi5N43cbrzZ1Rn56N5+8v8eMq1c3u0sBpb29vF1bHRaMTMzEx3xP0ACvS8Bdev1OOo2SzeUm/ceD/W1/+I4+PjWFpaio2NjSLMdAGs1+tx//69WFj4NMbHx6NW6VwVs9oLUbr2blSyUrQe/BhRfS7Kb85G67cfzmlbrdNonu2o1Wrnx3kwmAI9X0JSGM2jzp/dnZ1CZGtrKw4PD4srXb3+fHEsxXj9+jtxJQ82ndO9tY/2o729HlGpRvmN2ai8/kG09//ujov7VqsVx2c7Tk5OemY8GTyBnitguVyOg8ZB8bkuUXx082Ye36O4+srVeNh4WLxtpmjGxsZib2+v+JOCqlYfX8mOvv7sXLH5/Rfnj7sP0hU1XWXT7d/9/e5h7gdUoOczYDJYXFzMv2dk+WfB/MvB449u/8vzcnYQtbXvel+T3pWfOr/16lT82qhHffSl/JvwbszNzfWew7OBE7gQYBJIXw7W1tbiMt4iS6VSTE5O5v/NMzpw2PyDLwo8M8CLL+MIApcj0PMl5HJW8LcioAUIUNswMQgQoAGZFVqAALUNE4MAARqQWaEFCFDbMDEIEKABmRVagAC1DRODAAEakFmhBQhQ2zAxCBCgAZkVWoAAtQ0TgwABGpBZoQUIUNswMQgQoAGZFVqAALUNE4MAARqQWaEFCFDbMDEIEKABmRVagAC1DRODAAEakFmhBQhQ2zAxCBCgAZkVWoAAtQ0TgwABGpBZoQUIUNswMQgQoAGZFVqAALUNE4MAARqQWaEFCFDbMDEIEKABmRVagAC1DRODAAEakFmhBQhQ2zAxCBCgAZkVWoAAtQ0TgwABGpBZoQUIUNswMQgQoAGZFVqAALUNE4MAARqQWaEFCFDbMDEIEKABmRVagAC1DRODAAEakFmhBQhQ2zAxCBCgAZkVWoAAtQ0TgwABGpBZoQUIUNswMQgQoAGZFVqAALUNE4MAARqQWaEFCFDbMDEIEKABmRVagAC1DRODAAEakFmhBQhQ2zAxCBCgAZkVWoAAtQ0TgwABGpBZoQUIUNswMQgQoAGZFVqAALUNE4MAARqQWaEFCFDbMDEIEKABmRVagAC1DRODAAEakFmhBQhQ2zAxCBCgAZkVWoAAtQ0TgwABGpBZoQUIUNswMQgQoAGZFVqAALUNE4MAARqQWaEFCFDbMDEIEKABmRVagAC1DRODAAEakFmhBQhQ2zAxCBCgAZkVWoAAtQ0TgwABGpBZoQUIUNswMQgQoAGZFVqAALUNE4MAARqQWaEFCFDbMDEIEKABmRVagAC1DRODAAEakFmhBQhQ2zAxCBCgAZkVWoAAtQ0TgwABGpBZoQUIUNswMQgQoAGZFVqAALUNE4MAARqQWaEF/gOCu/ESt878XgAAAABJRU5ErkJggg==</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,iVBORw0KGgoAAAANSUhEUg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hb3AgAAAABJRU5ErkJggg==</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="-35.478953630236674" y="-79.43188487025327" heading="113" scale="1" volume="100" pan="0" rotation="1" draggable="true" hidden="true" costume="2" color="80,80,80,1" pen="tip" id="8"><costumes><list id="9"><item><costume name="Not infected" center-x="39" center-y="23" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAYAAAAmlE46AAAAAXNSR0IArs4c6QAAAU1JREFUKBWVk8FKw1AQRe+8mIiILqog+AERqVUEN4JduhME0YXQP3Ht0h8QuhZRRME/qOBGES1FDLh1ZV3UhZiQjHeCxaIVkoEkb+7ckwzvTQRDYnJVK58fmLLS6Bi6vWt5+22TQcGv6hJ8rEERspCDCnQhiJDgKunIfd//DaoX1LAFh10a6xSn+wZ7Unul1kKGo7iNM0DSHAxquklon57qIDBk3SG8F7flQrCgM4HDJdtZGWL8Kylu4gwbI4GHdVaLQfYafsAYx2XD8pLREH9ReyKYKAOq4t1xd8bLQOY1xvH+XBY0xvGQzkuDZBz7Pbaei8LmNcYlAR4INXklBWDzNI1xuJWE2QHH6tBG6z/YauYxrzH5yOXmZZ31U2xTqDMPuQGVXFfYnxERaiUeTnEnL6b/gJbtcNifME815DnlYGagIorn8IgTSc1m8QXtdGsgPC1qEQAAAABJRU5ErkJggg==" id="10"/></item><item><costume name="Infected" center-x="7" center-y="7.5" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAQJJREFUKBWVkrFOAkEQhv9ZCws6KiNKI0dpo7krqX0CExrEF+BZiL3BxvgGV/EAINWVogUolHQUFjL8w3KEGIm3W9xk//m/mczeCP44X4jrR1hdWOoH7uMMw7ffNtkXZkjuHbSjwOW+TlO2gnQrGDzm+g6cI+5RbOWJA/HpFMM7yzn7zBA/MPwHmbW19ULmSK4AHZla/Mi1E+htccA7jWHHeMJrNRCe2oyhkPWobh4nsNvGTlDTcFBTPo68hILGyBi14xLKY8LnBQt8LrGIXIT3b65ZuyDEjdG2Z0ic4LXPWRvc0exQAZ/ThvcCu13NAf7XJovcMBV5TTmGpNzR59xjcQ3CiEBFmHKtVgAAAABJRU5ErkJggg==" id="11"/></item></list></costumes><sounds><list struct="atomic" id="12"></list></sounds><blocks></blocks><variables></variables><scripts><script x="30" y="30"><block s="receiveGo"></block><custom-block s="Beginning"></custom-block><block s="show"></block><block s="doRepeat"><block var="Population"/><script><block s="createClone"><l><option>myself</option></l></block></script></block><block s="hide"></block><custom-block s="TheTimer"></custom-block></script><script x="30" y="208"><block s="receiveOnClone"></block><custom-block s="Clone"></custom-block><block s="doForever"><script><block s="doIf"><block s="reportGreaterThan"><block var="Timer"/><l>0</l></block><script><block s="bounceOffEdge"></block><block s="forward"><block var="Speed"/></block><block s="doIf"><block s="reportEquals"><block s="reportAttributeOf"><l><option>costume name</option></l><block s="reportGet"><l><option>self</option></l></block></block><l>Not infected</l></block><script><block s="doIf"><custom-block s="CollidewithStick"></custom-block><script><block s="doSwitchToCostume"><l>Infected</l></block><block s="doChangeVar"><l>Infected</l><l>1</l></block></script></block></script></block></script></block></script></block></script></scripts></sprite><watcher var="Infected" style="normal" x="10" y="10" color="243,118,29" hidden="true"/><watcher var="Timer" style="normal" x="10" y="31.000001999999995" color="243,118,29"/><watcher var="Population" style="normal" x="10" y="52.00000399999999" color="243,118,29" hidden="true"/><watcher scope="Stage" s="getTimer" style="normal" x="10" y="73.00000599999998" color="4,148,220" hidden="true"/><watcher var="% Initially Infected" style="normal" x="10" y="94.00000799999998" color="243,118,29" hidden="true"/><watcher var="Speed" style="normal" x="10" y="115.00000999999997" color="243,118,29" hidden="true"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="CollidewithStick" type="reporter" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doForEach"><l>item</l><block s="reportGet"><l><option>neighbors</option></l></block><script><block s="doIf"><block s="reportAnd"><block s="reportTouchingObject"><block var="item"/></block><block s="reportEquals"><block s="reportAttributeOf"><l><option>costume name</option></l><block var="item"/></block><l>Infected</l></block></block><script><block s="doReport"><block s="reportBoolean"><l><bool>true</bool></l></block></block></script></block></script></block><block s="doReport"><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></block-definition><block-definition s="Beginning" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>Timer</l><l>0</l></block><block s="doSetVar"><l>Infected</l><l>0</l></block><block s="gotoXY"><l>0</l><l>0</l></block><block s="doAsk"><l>What is the population?</l></block><block s="doSetVar"><l>Population</l><block s="getLastAnswer"></block></block><block s="doAsk"><l>What percentage of the population is infected?</l></block><block s="doSetVar"><l>% Initially Infected</l><block s="getLastAnswer"></block></block><block s="doAsk"><l>What is the speed of the population?</l></block><block s="doSetVar"><l>Speed</l><block s="getLastAnswer"></block></block></script></block-definition><block-definition s="Clone" type="command" category="control"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSwitchToCostume"><l>Not infected</l></block><block s="doIf"><block s="reportLessThan"><block var="Infected"/><block s="reportProduct"><block var="Population"/><block s="reportQuotient"><block var="% Initially Infected"/><l>100</l></block></block></block><script><block s="doSwitchToCostume"><l>Infected</l></block><block s="doChangeVar"><l>Infected</l><l>1</l></block></script></block><block s="setHeading"><block s="reportRandom"><l>1</l><l>360</l></block></block><block s="gotoXY"><block s="reportRandom"><l>-240</l><l>240</l></block><block s="reportRandom"><l>-180</l><l>180</l></block></block></script></block-definition><block-definition s="TheTimer" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doResetTimer"></block><block s="doUntil"><block s="reportEquals"><block var="Infected"/><block var="Population"/></block><script><block s="doSetVar"><l>Timer</l><block s="getTimer"></block></block></script></block><block s="doStopThis"><l><option>all but this script</option></l></block></script></block-definition></blocks><variables><variable name="Infected"><l>20</l></variable><variable name="Timer"><l>9.2</l></variable><variable name="Population"><l>20</l></variable><variable name="% Initially Infected"><l>50</l></variable><variable name="Speed"><l>1</l></variable></variables></project><media name="U5L2-Infection" app="Snap! 5.4, http://snap.berkeley.edu" version="1"></media></snapdata>