<snapdata remixID="9413657"><project name="U5L2 p3 Disease Spread Simulation" app="Snap! 5.4, http://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAXjSURBVHhe7d1faJV1HMfxzzlnZ///uTk3N7b5p2mQqPknJBYJEdIIiy688SK6UBiEBOvCgrCgLrqJCKqLWaGCBBFdFIUXi5yZ6LIt/ww1VJzOuc3p5tk86s456/c8e1xOdDuT6gvj/RqPO8/veXTj8b3f7zlH4YTGHAFGJgUYj8c1PDwc7NkJh8MqLCxUNBoNRjBb+QF6DR48eFAZGRkqLy8PDv278vNydeTAz4rfHAlGHqx28RIVza1Qd3e3KisrtXTp0uAIZiM/wLa2Nn/G+a/k5eZq95Z1erF2TBmhYPAhkuGo8ppaNJpI+rNxRUWFqqqqgqOYbSLvOu3t7crPz1cymdT27dvV1dXlz4adnZ26cOGCenp6NDQ0pKKiIrW0tPizZHNzsw4fPqysrCwdOnRINTU12rt3r+rq6tTa2ur/WU1NTdq0aZNG79zW6IFmra3MUlF22N/KXtqukrpVyu85OjHmbXOyXIT1jYrFYopEIsrOzva/LmansPfLyMiI7ty542+rVrkoXIynT5/W1atXNTg46EdYW1vrH79y5crElutmtv3796uhoUE7duxQQUGBdu7c6S+bXpzr16/3A00kEv4XmyRxW4pmBzuTefHe/X4yMzODUcxGfoA5OTkTf+He7LZs2TI/RO/z4sWLVVZW5gfpHffuF71A6uvr/Ti8pXvPnj1qbGzUjRs3tGHDBn8GrK6u9s/z4ku45fR+ya52Jf86EOxN5v2eu9/PtWvXglHMRv494KlTp3TmzJlHvg8sLi72Z8qHGUslNadjtx4bPBKMPFxo4Trty31eJeWV6u/v92fXvLy84Chmm4mXYbwIBwYG/KXVmnfvV1pa6s++3jNhzF6TXgcE/m/+PSBghQBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhigBhiveKm6FUKqVL3Zd09ESbei/1qaxkntasWeO/PW04zM/zTBHgDMSGY/rs+4/0RdsnGo5eV2JkTKkhKTdZqIanXtZbr7yn2poFwdlIBwGmaXBoUI1fblZr/z6llJTcVUu6+CLFwQluf/6thWp+9RutXrk6GMR0WDPS4C27H+56X7/0/jgen5MclkbvfWvlkNSTc17bftqsvsHeYBDTIcA09PX16duTuyZdrdHLUsa8YOce52Kn9fkPH4uFJT0EmIZjx//U9eSA/9hbdhPuYbTCPb7uBh7Q2XdHvlYsFgv2MBUCTMPFyxcVzhtT/Jh086hbkt3yG852q25Uun3BnZAaP++ugazLOnv+bLCHqRBgGkrnlrhnG1L24+5TwfiYd/+XWe0uYJaL8JybCEfdYDAb3upNaKB/fMbE1AgwDcufWKHcUL5CmVKOe4KbWTu+eU88ovPdRSx00Z2Q4sfdZBh3S/PVkEpKXLSYFgGmobZ6geoXPOc/Dt13xbyZMGOOC/PJ8RnSW5arCmtUV1cXnIGpEGAaIpGItj3ztgoT/8xqY0k34510W4dbgs+7mW/ExedmyJD7eG3jVhUUBGs1pkSAaVqzYq0+eOFT5aXGw/JmwqxFbvab65bhMrfv7gXD7uPZ4gZt3fi6fw6mx7+EzID3gvRvHb/qna/e1Bl1KBEZVeqmtwSHlO9uBLcsb1Lji28w+80AAT6CeDyujo4O/dH5u4aTQ5pXUqGnV9arbtES/kPCDBEgTPHjClMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECFMECEPS36lO087mJDz6AAAAAElFTkSuQmCC</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="true" codify="false" inheritance="false" sublistIDs="false" scheduled="true" 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="Person" idx="1" x="0" y="0" heading="324" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="2" color="80,80,80,1" pen="tip" id="8"><costumes><list id="9"><item><costume name="healthy" center-x="20" center-y="19" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAmCAYAAAC29NkdAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOcSURBVFhH7ZhLSBVRHMaP13zko0xvglphm5AgFLJWtmgR2aaopF1Yu6IoiB4SvZMWF9q0KWgRRFGLMCuI2lTYY6EFYtEiSgqhjMRA0czr9fZ955xxHs7cmet91KIf/Ob+z1zuzDdzZs7MPTkiNdbBFXA5rIVFcFL7A77V9sEozAo74Q3IAPGAjsPrcDPMGG3wM3QLkIyD8BAMRJAu3g7bYZ1sWTk6pAsfImFd2ODBMuhd2fLAL+BFaD/aoKG8mB32Ejyoytl4BVwAb8NNsqUYRrhyXadGJPwVy2rVkNyD7KmYbFlwC1gCH0LeoYpUz5oX9rP5FG6Bo7KlCelPKzdh5sMR+7bXQ44ONpwBeTOYQ0EmwxnY98F9M8MM1i7mETxRJchGOCv27maWZyysZ/CY/vQMl/etW5oq3EZFR7N9W/Z9csyVGAF5ajeq0pvCj53SVMn/3iPi8XiibTGLvNSMgDv0Z8KzVzDAG23ucBvl97eJvMFuEa1crddasO9bZmLAXLiVjUTwqHNiv3VrbnAboV9DIjQ5Kuvp0hr9jSvMlMubhAPkHa7xuzFKnx+XGx1r2KfXJI/1uotWrdWVA/OGaWHAM/C0bPoEzBpmwLPOcfCf43/AVPkrAXmj2AbpBGQ9IIMt7Dosh5kgeAZM5iiDYoSbrGkKPFQxoOu/rfmfOqXphI+26KI6MdJ0Qa/xJcqAZopIeEpXIlZSg0dSjyh71KoeTymezaK+q7Jbpyrr9RoPLBlAp/G69Rqqh6NlsDZC8ci58VhJtXxMja5p834KOGCwwv4HeLELifH6PWKitll/44E5SL+BjUbAE/C8rBK8LBBrWD9CEz9ngkUX14tYcZX+JgFmwJOw3QhYAb/AYtnyeeQl093TC5YGC0bMcGNwGRw2AhImPqdKMYWQ83SdHdS1Z+zzFJQ9ag1IzGtRiF6EbNB1ZomEe7E09iWvPVXOHgetf6Ab8EMGziyR8AssrSfC9ifeGfAl3KVKSSM28EHX6ScS7seySTUkrZAZZnB2sQFDXlOlJt3viuYNYbAXXlGliVdAwjftWzBPtki6QtrDjcDdsEO2HCQKSDijxcmdDbJlJdmwkTCHDjWMmXRBnrn3suWCX0CDA/AIXCJbTtzCzu5CK/wBh5LLspUmeDCcinsF3SYmg/gO7oeBx9igZ9DJStgCOWaugpyjdmMAsvseaz270ou5BnRSBjl3WADzIeekOYOa4sS5EH8AEMciA2cnyPgAAAAASUVORK5CYII=" id="10"/></item><item><costume name="sick" center-x="20" center-y="19" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAmCAYAAAC29NkdAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAASESURBVFhHvZhbaB1FGMc/c5qkbRKjVbFe8IJ3IYpUlKKVFgUpSlsvWEoR9c3iQ2kR1AdRQRAEffBJkPqiog9a4wVR+iD1gmAVaqUWRcRWhKq1NWly0qQm+vvPfJvs2e45u+f0nPzgnzOzu9n978x838zsKXZyrECXo4vRRWgxmnL9hb537UHHUdO0YvB+dLu09Ak7Mxwp4OBzNsHP2673dawszRh8HD2MqQtjtTUw+wc/z6MXw4ECyhi8Bz2LrsRcW8Ck+BVtRe+GWh2KDL6AtrbLWBY3+hLaHEo51DN4KnoLre6UuQQ3+R5ST02HWoo8g/3oI7Si0+YS3OSnaC06GmpOl/+meQN1zNzUAbO/X/WK489ahV4PpRRZgwqGNe00N/6VF0Dm/hk2W3C2H0jhz1yD5GGWiv8KvcG2xJxuNj3CBYOxLvKONWJ61Gx0h9l/pO2eC8xGGDjd55gN3uEXZOgn7Y99YbdQ3IkU5TUt+Fi65ab2c/GXXnEmmA+kslQItYXMM+Nfm/1JrM6MRxONcA/KuYHEoJpWs8Msi66NNxz5wA/ANMO3bOsl9F7Gn39pxUnM3RRNl0Be5Gm2i5/E+TVeDnT10h2MlepuJtHfzSZ/wuARs4Fb47kyaPyNfRZNLjgr9sqiIT/ZAO/qGYrb1YIyeZdOZOk+j9n/OrNj+zD4M2NndekWCMNDLzfAyNaY00OzPVKAPFVk7m5ab2M4lEFBoUHecz4V3mdmjDF1RTzXiMMkKrWWru27IR5L90hXHy1asMzghbppxT0yuJ7Kyni4lrHPuVmP2enruflSumzXXEQ2onJaDA61fhq1fu+l/D89UwYM7stL1AG13uQvGDs31tXdemgYGQXoBeq9RNkhklDfIF3Ue0ltWlCApOvzQV2DMlIvoc4nGoMr643BZknSygSL/DxVvyE4zuChJXMpY3CnVjNPE8VPxUPlkRmN0YSZKn+4m5KxojQPmdT0t2SDHyiAVc4zTbegjI1+zOTAlqjvRo9KNgH6XbyMMilJLZQnZYJqyUwg1IIag6V3W/xDyGP9N5N67iOqr5qLWKkoQnVemaD6bcwSJTgug8O+YGyIWk4LhYVMWzLWbLpIUCZQdtCyq5FJ9zQsg3sR75SPjB16BXNcpWlr4DY/cRIoO8jkyId+IB952pukGd7nRI79GI2lu7RdyOTgnV7JJ3hK9iQEv+0nmk+IP0Vdq93ZKnQvywpTGB1WFAvt/CsEwarsTFF2adUufOxp2f+JCtldHanUlvmqdt5xcxp714cSZKe6sIEuE9XtJvXMmk181qB2IQ+qMJ8mU896ANXshJIxmOY7xFrG1ikxd3r1kjK3CW2LxTnyviwk6FPEm6i7U2PSzZEn7CG0PdQyZLs4zTtIG6kdnehuvydrH1uOcs2JvC5Ocwi9ho7Q3UN0d1syIuZ030fRI0hfYuvSqIuz6Not6F60vNlu9xbTtPqyi91yMc0YTHM1klEWWDaEWX2jrsEN/YZ+QEq6kspN0arBLOzjbAnSvMM+0LR81beVlj6cz2H2Py88QZv6NoAdAAAAAElFTkSuQmCC" id="11"/></item></list></costumes><sounds><list struct="atomic" id="12"></list></sounds><blocks></blocks><variables></variables><scripts><script x="30.00000000000003" y="32.00000000000006"><block s="receiveGo"></block><block s="doSetVar"><l>time elapsed</l><l>0</l></block><block s="doSetVar"><l>infected counter</l><l>0</l></block><block s="gotoXY"><l>0</l><l>0</l></block><block s="doAsk"><l>Population size</l></block><block s="doSetVar"><l>population size</l><block s="getLastAnswer"></block></block><block s="doAsk"><l>Initial infected percentage</l></block><block s="doSetVar"><l>percent initially sick</l><block s="getLastAnswer"></block></block><block s="doAsk"><l>Speed</l></block><block s="doSetVar"><l>speed</l><block s="getLastAnswer"></block></block><block s="show"></block><block s="doRepeat"><block var="population size"/><script><block s="createClone"><l><option>myself</option></l></block></script></block><block s="hide"></block><custom-block s="activateTimer"></custom-block></script><script x="228.00000000000057" y="219.00000000000006"><block s="receiveOnClone"></block><block s="doSwitchToCostume"><l>healthy</l></block><block s="doIf"><block s="reportLessThan"><block var="infected counter"/><block s="reportProduct"><block var="population size"/><block s="reportQuotient"><block var="percent initially sick"/><l>100</l></block></block></block><script><block s="doSwitchToCostume"><l>sick</l></block><block s="doChangeVar"><l>infected counter</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><block s="doForever"><script><block s="doIf"><block s="reportGreaterThan"><block var="time elapsed"/><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>healthy</l></block><script><block s="doIf"><custom-block s="collideWithSick?"></custom-block><script><block s="doSwitchToCostume"><l>sick</l></block><block s="doChangeVar"><l>infected counter</l><l>1</l></block></script></block></script></block></script></block></script></block></script></scripts></sprite><watcher var="speed" style="normal" x="8.041666666666401" y="8.041666666666643" color="243,118,29" hidden="true"/><watcher scope="Stage" s="getTimer" style="normal" x="90.87083333333385" y="4.020838158333312" color="4,148,220" hidden="true"/><watcher var="time elapsed" style="normal" x="3.1273148148150085" y="5.450467787962921" color="243,118,29"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="label %&apos;text&apos; of size %&apos;size&apos;" type="command" category="pen"><comment x="0" y="0" w="90" collapsed="false">LABEL will stamp text on the stage at the given font size. The direction of the text is the direction the sprite is facing, and color will match the pen color.</comment><header></header><code></code><translations></translations><inputs><input type="%txt">Hello!</input><input type="%n">12</input></inputs><script><block s="doRun"><block s="reportJSFunction"><list><l>text</l><l>size</l></list><l>var stage = this.parentThatIsA(StageMorph),&#xD;    context = stage.penTrails().getContext(&apos;2d&apos;),&#xD;    rotation = radians(this.direction() - 90),&#xD;    trans = new Point(&#xD;      this.center().x - stage.left(),&#xD;      this.center().y - stage.top()&#xD;    ),&#xD;    isWarped = this.Warped,&#xD;    len,&#xD;    pos;&#xD;&#xD;if (isWarped) {endWarp(); }&#xD;context.save();&#xD;context.font = size + &apos;px monospace&apos;;&#xD;context.textAlign = &apos;left&apos;;&#xD;context.textBaseline = &apos;alphabetic&apos;;&#xD;context.fillStyle = this.color.toString();&#xD;len = context.measureText(text).width;&#xD;trans = trans.multiplyBy(1 / stage.scale);&#xD;context.translate(trans.x, trans.y);&#xD;context.rotate(rotation);&#xD;context.fillText(text, 0, 0);&#xD;context.translate(-trans.x, -trans.y);&#xD;context.restore();&#xD;pos = new Point(&#xD;  len * Math.sin(radians(this.direction())),&#xD;  len * Math.cos(radians(this.direction())));&#xD;pos = pos.add(new Point(this.xPosition(), this.yPosition()));&#xD;this.gotoXY(pos.x, pos.y, false);&#xD;this.changed();&#xD;if (isWarped) {this.startWarp(); }&#xD;stage.changed();</l></block><list><block var="text"/><block var="size"/></list></block></script></block-definition><block-definition s="map %&apos;function&apos; over %&apos;lists&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%repRing"></input><input type="%mult%l"></input></inputs><script><block s="doWarp"><script><block s="doDeclareVariables"><list><l>mapone</l><l>mapmany</l></list></block><block s="doSetVar"><l>mapone</l><block s="reifyScript"><script><block s="doIf"><custom-block s="empty? %l"><block var="data"/></custom-block><script><block s="doReport"><block s="reportNewList"><list></list></block></block></script></block><block s="doReport"><block s="reportCONS"><block s="evaluate"><block var="function"/><list><block s="reportListItem"><l>1</l><block var="data"/></block></list></block><block s="evaluate"><block var="mapone"/><list><block s="reportCDR"><block var="data"/></block></list></block></block></block></script><list><l>data</l></list></block></block><block s="doSetVar"><l>mapmany</l><block s="reifyScript"><script><block s="doIf"><custom-block s="empty? %l"><block s="reportListItem"><l>1</l><block var="data lists"/></block></custom-block><script><block s="doReport"><block s="reportNewList"><list></list></block></block></script></block><block s="doReport"><block s="reportCONS"><block s="evaluate"><block var="function"/><custom-block s="map %repRing over %mult%l"><block s="reifyReporter"><autolambda><block s="reportListItem"><l>1</l><l/></block></autolambda><list></list></block><list><block var="data lists"/></list></custom-block></block><block s="evaluate"><block var="mapmany"/><list><custom-block s="map %repRing over %mult%l"><block s="reifyReporter"><autolambda><block s="reportCDR"><l/></block></autolambda><list></list></block><list><block var="data lists"/></list></custom-block></list></block></block></block></script><list><l>data lists</l></list></block></block><block s="doIfElse"><custom-block s="empty? %l"><block s="reportCDR"><block var="lists"/></block></custom-block><script><block s="doReport"><block s="evaluate"><block var="mapone"/><list><block s="reportListItem"><l>1</l><block var="lists"/></block></list></block></block></script><script><block s="doReport"><block s="evaluate"><block var="mapmany"/><list><block var="lists"/></list></block></block></script></block></script></block></script></block-definition><block-definition s="empty? %&apos;data&apos;" type="predicate" category="lists"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doReport"><block s="reportEquals"><block var="data"/><block s="reportNewList"><list></list></block></block></block></script></block-definition><block-definition s="keep items such that %&apos;pred&apos; from %&apos;data&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%predRing"></input><input type="%l"></input></inputs><script><block s="doWarp"><script><block s="doIf"><custom-block s="empty? %l"><block var="data"/></custom-block><script><block s="doReport"><block s="reportNewList"><list></list></block></block></script></block><block s="doIfElse"><block s="evaluate"><block var="pred"/><list><block s="reportListItem"><l>1</l><block var="data"/></block></list></block><script><block s="doReport"><block s="reportCONS"><block s="reportListItem"><l>1</l><block var="data"/></block><custom-block s="keep items such that %predRing from %l"><block var="pred"/><block s="reportCDR"><block var="data"/></block></custom-block></block></block></script><script><block s="doReport"><custom-block s="keep items such that %predRing from %l"><block var="pred"/><block s="reportCDR"><block var="data"/></block></custom-block></block></script></block></script></block></script></block-definition><block-definition s="combine with %&apos;function&apos; items of %&apos;data&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%repRing"></input><input type="%l"></input></inputs><script><block s="doWarp"><script><block s="doIf"><custom-block s="empty? %l"><block s="reportCDR"><block var="data"/></block></custom-block><script><block s="doReport"><block s="reportListItem"><l>1</l><block var="data"/></block></block></script></block><block s="doReport"><block s="evaluate"><block var="function"/><list><block s="reportListItem"><l>1</l><block var="data"/></block><custom-block s="combine with %repRing items of %l"><block var="function"/><block s="reportCDR"><block var="data"/></block></custom-block></list></block></block></script></block></script></block-definition><block-definition s="if %&apos;test&apos; then %&apos;true&apos; else %&apos;false&apos;" type="reporter" category="control"><header></header><code></code><translations></translations><inputs><input type="%b"></input><input type="%anyUE"></input><input type="%anyUE"></input></inputs><script><block s="doIfElse"><block var="test"/><script><block s="doReport"><block s="evaluate"><block var="true"/><list></list></block></block></script><script><block s="doReport"><block s="evaluate"><block var="false"/><list></list></block></block></script></block></script></block-definition><block-definition s="for %&apos;i&apos; = %&apos;start&apos; to %&apos;end&apos; %&apos;action&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%upvar"></input><input type="%n">1</input><input type="%n">10</input><input type="%cs"></input></inputs><script><block s="doDeclareVariables"><list><l>step</l><l>tester</l></list></block><block s="doIfElse"><block s="reportGreaterThan"><block var="start"/><block var="end"/></block><script><block s="doSetVar"><l>step</l><l>-1</l></block><block s="doSetVar"><l>tester</l><block s="reifyReporter"><autolambda><block s="reportLessThan"><block var="i"/><block var="end"/></block></autolambda><list></list></block></block></script><script><block s="doSetVar"><l>step</l><l>1</l></block><block s="doSetVar"><l>tester</l><block s="reifyReporter"><autolambda><block s="reportGreaterThan"><block var="i"/><block var="end"/></block></autolambda><list></list></block></block></script></block><block s="doSetVar"><l>i</l><block var="start"/></block><block s="doUntil"><block s="evaluate"><block var="tester"/><list></list></block><script><block s="doRun"><block var="action"/><list></list></block><block s="doChangeVar"><l>i</l><block var="step"/></block></script></block></script></block-definition><block-definition s="join words %&apos;words&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%mult%txt"></input></inputs><script><block s="doWarp"><script><block s="doIf"><custom-block s="empty? %l"><block s="reportCDR"><block var="words"/></block></custom-block><script><block s="doReport"><block s="reportListItem"><l>1</l><block var="words"/></block></block></script></block><block s="doIf"><block s="reportEquals"><l></l><block s="reportListItem"><l>1</l><block var="words"/></block></block><script><block s="doReport"><custom-block s="join words %mult%txt"><block s="reportCDR"><block var="words"/></block></custom-block></block></script></block><block s="doIf"><block s="reportEquals"><l></l><block s="reportListItem"><l>2</l><block var="words"/></block></block><script><block s="doReport"><custom-block s="join words %mult%txt"><block s="reportCONS"><block s="reportListItem"><l>1</l><block var="words"/></block><block s="reportCDR"><block s="reportCDR"><block var="words"/></block></block></block></custom-block></block></script></block><block s="doReport"><block s="reportJoinWords"><list><block s="reportListItem"><l>1</l><block var="words"/></block><l> </l><custom-block s="join words %mult%txt"><block s="reportCDR"><block var="words"/></block></custom-block></list></block></block></script></block></script><scripts><script x="229.00000300000002" y="196.77778077777773"><block s="reportJoinWords"><list><l></l><l></l></list></block></script></scripts></block-definition><block-definition s="list $arrowRight sentence %&apos;data&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doWarp"><script><block s="doReport"><custom-block s="join words %mult%txt"><block var="data"/></custom-block></block></script></block></script></block-definition><block-definition s="sentence $arrowRight list %&apos;text&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%txt"></input></inputs><script><block s="doWarp"><script><block s="doReport"><block s="reportTextSplit"><block var="text"/><l><option>whitespace</option></l></block></block></script></block></script></block-definition><block-definition s="catch %&apos;tag&apos; %&apos;action&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%upvar"></input><input type="%cs"></input></inputs><script><block s="doCallCC"><block s="reifyScript"><script><block s="doSetVar"><l>tag</l><block var="cont"/></block><block s="doRun"><block var="action"/><list></list></block></script><list><l>cont</l></list></block></block></script></block-definition><block-definition s="throw %&apos;cont&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%s">catchtag</input></inputs><script><block s="doRun"><block var="cont"/><list></list></block></script></block-definition><block-definition s="catch %&apos;tag&apos; %&apos;value&apos;" type="reporter" category="control"><header></header><code></code><translations></translations><inputs><input type="%upvar"></input><input type="%anyUE"></input></inputs><script><block s="doCallCC"><block s="reifyScript"><script><block s="doSetVar"><l>tag</l><block var="cont"/></block><block s="doReport"><block s="evaluate"><block var="value"/><list></list></block></block></script><list><l>cont</l></list></block></block></script></block-definition><block-definition s="throw %&apos;tag&apos; %&apos;value&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%s">catchtag</input><input type="%s"></input></inputs><script><block s="doRun"><block var="tag"/><list><block var="value"/></list></block></script></block-definition><block-definition s="for each %&apos;item&apos; of %&apos;data&apos; %&apos;action&apos;" type="command" category="lists"><header></header><code></code><translations></translations><inputs><input type="%upvar"></input><input type="%l"></input><input type="%cs"></input></inputs><script><block s="doUntil"><custom-block s="empty? %l"><block var="data"/></custom-block><script><block s="doSetVar"><l>item</l><block s="reportListItem"><l>1</l><block var="data"/></block></block><block s="doRun"><block var="action"/><list><block s="reportListItem"><l>1</l><block var="data"/></block></list></block><block s="doSetVar"><l>data</l><block s="reportCDR"><block var="data"/></block></block></script></block></script></block-definition><block-definition s="if %&apos;test&apos; do %&apos;action&apos; and pause all $pause-1-255-220-0" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%boolUE"></input><input type="%cs"></input></inputs><script><block s="doDeclareVariables"><list><l>breakpoint</l></list></block><block s="doIf"><block s="evaluate"><block var="test"/><list></list></block><script><block s="doSetVar"><l>breakpoint</l><block var="test"/></block><block s="doShowVar"><l>breakpoint</l></block><block s="doRun"><block var="action"/><list></list></block><block s="doPauseAll"></block><block s="doHideVar"><l></l></block></script></block></script></block-definition><block-definition s="word $arrowRight list %&apos;word&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%txt"></input></inputs><script><block s="doWarp"><script><block s="doReport"><block s="reportTextSplit"><block var="word"/><l><option>letter</option></l></block></block></script></block></script></block-definition><block-definition s="ignore %&apos;x&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%s"></input></inputs></block-definition><block-definition s="tell %&apos;sprite&apos; to %&apos;action&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%s">Sprite</input><input type="%cs"></input></inputs><script><block s="doRun"><block s="reportAttributeOf"><block var="action"/><block var="sprite"/></block><list></list></block></script></block-definition><block-definition s="ask %&apos;sprite&apos; for %&apos;expression&apos;" type="reporter" category="control"><header></header><code></code><translations></translations><inputs><input type="%s">Sprite</input><input type="%repRing"></input></inputs><script><block s="doReport"><block s="evaluate"><block s="reportAttributeOf"><block var="expression"/><block var="sprite"/></block><list></list></block></block></script></block-definition><block-definition s="list $arrowRight word %&apos;list&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doWarp"><script><block s="doReport"><block s="reportJoinWords"><block var="list"/></block></block></script></block></script></block-definition><block-definition s="activateTimer" 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 counter"/><block var="population size"/></block><script><block s="doSetVar"><l>time elapsed</l><block s="getTimer"></block></block></script></block><block s="doStopThis"><l><option>all but this script</option></l></block></script></block-definition><block-definition s="initialize" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs></block-definition><block-definition s="cloneInitialize" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSwitchToCostume"><l>healthy</l></block><block s="doIf"><block s="reportLessThan"><block var="infected counter"/><block s="reportProduct"><block var="population size"/><block s="reportQuotient"><block var="percent initially sick"/><l>100</l></block></block></block><script><block s="doSwitchToCostume"><l>sick</l></block><block s="doChangeVar"><l>infected counter</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="collideWithSick?" type="predicate" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><custom-block s="for each %upvar of %l %cs"><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>sick</l></block></block><script><block s="doReport"><block s="reportBoolean"><l><bool>true</bool></l></block></block></script></block></script></custom-block><block s="doReport"><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></block-definition></blocks><variables><variable name="speed"><l>5</l></variable><variable name="population size"><l>100000</l></variable><variable name="percent initially sick"><l>2</l></variable><variable name="time elapsed"><l>0</l></variable><variable name="infected counter"><l>272</l></variable></variables></project><media name="U5L2 p3 Disease Spread Simulation" app="Snap! 5.4, http://snap.berkeley.edu" version="1"></media></snapdata>