<snapdata remixID="10156275"><project name="U5L2p3 Disease Spread" app="Snap! 6, https://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAHcklEQVR4Xu2aXUyWZRjH/+/LpwziQ4ShliGhMsUahDSBhGa1sU4kmgfRls2srdZJW60DTuhAx9w6cZMt0pa6Dozm5lZTQ+d0Qyf5kQxxRPI1PgQUifjyhbddNwNFlPdEwOva/z7x/X7+1/X7cT/PfT96/H6/HxzswCJ1wEMBF6nzPKzrwLSAg4ODaGtrQ2JiIrxe76K2Z2JiAh0dHUhNTUVYWNiiZuHB57cDTsChoSHU1tYiKSlp3o420l6PjmPl8A3/O+cxUl99HSFvfgmfz4f29nZs2bJl0f8g5q0p/OHJGfDKlSsIDQ117bhx4wZWrFiBmJgYyEz0pHHr1i0kJyfP2cKRkRH09fVh5cqVaPnhc+QF/z39+aCUzfDELIfvz19m/IY/OAz9n57GwMCAe13+OLKysojKaAecgHK66+7udiXu27cPsbGxkFNyb28vIiIikJmZibNnz6KsrAwHDhzAkiVLsGrVKty+fRshISHuva1bt+Lw4cPYs2cPysvLUVxcjK6uLncaXb9+Pdr2f4SCmN4HbfR4EP7B9xj5aecsAXt3nkR/f797XY6/du1ao+1nWU7AxsZG3Llzx3WjqqoKo6Oj7rQXFRXlrglFMpFu06ZNOHr0qJuRWlpa3OPc3FxcuHAB27ZtQ01NjZsV5fvZ2dk4d+4c0tPTkZaWhs7KT/DGQwKGvv0VvElpGPlxxywBuz78bTqPHDsjI4OkjHbACXjt2jV3qhTYMkQ8uQZ7eIdGFgP37t2bfv/+/fvucVBQkJsJly5dOqNF4+PjCA4OhsfjwfDwMPB7GV7xNQRuY3gU/nn3Z3csmYXXrFmDlJSUwN/jJ1R2YHoVfOrUKXfKjY+Pd9I87ZEQHYHw3psBf9Yfn4LW/lF3+hb5ZCblsNuBGfuAcsHf2trqFh8y+4mID/+7UG2QmVNO5VMLo4U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QMl0FtVFABZAsR6SAlukqqI0CKoBkOSIFtExXQW0UUAEkyxEpoGW6CmqjgAogWY5IAS3TVVAbBVQAyXJECmiZroLaKKACSJYjUkDLdBXURgEVQLIckQJapqugNgqoAJLliBTQMl0FtVFABZAsR6SAlukqqI0CKoBkOSIFtExXQW0UUAEkyxEpoGW6CmqjgAogWY5IAS3TVVAbBVQAyXJECmiZroLaKKACSJYjUkDLdBXURgEVQLIckQJapqugNgqoAJLliBTQMl0FtVFABZAsR6SAlukqqI0CKoBkOSIFtExXQW0UUAEkyxEpoGW6CmqjgAogWY5IAS3TVVAbBVQAyXJECmiZroLaKKACSJYjUkDLdBXURgEVQLIckQJapqugNgqoAJLliBTQMl0FtVFABZAsR6SAlukqqI0CKoBkOSIFtExXQW0UUAEkyxEpoGW6CmqjgAogWY5IAS3TVVAbBVQAyXJECmiZroLaKKACSJYjUkDLdBXU9j+7LbLG89ul4wAAAABJRU5ErkJggg==</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" hyperops="true" codify="false" inheritance="false" sublistIDs="false" scheduled="true" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAOhUlEQVR4Xu3VwQkAAAjEMN1/abewn7jAQRC64wgQIECAAIF3gX1fNEiAAAECBAiMAHsCAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAA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IcIBukgABAgQICLAfIECAAAECgYAAB+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+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQIHLFxAWmhEwHPAAAAAElFTkSuQmCC</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="86" scale="1" volume="100" pan="0" rotation="1" draggable="true" hidden="true" costume="1" color="80,80,80,1" pen="tip" id="8"><costumes><list id="9"><item><costume name="sick" center-x="6" center-y="6.5" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAANCAYAAACdKY9CAAAA8ElEQVQoU43Svy4EURTH8e/vmtl5AZVap0BDNFbDzhQaXkGs1gsQHoBWxCOgUSwqoxGNPwmdWuUF1q57ZNzsFDLZ3Fv+7v2cc5JzRcMx1ierWFx9/b/WKDDyDVq2jdcKjuwv9/Rxdse3TsX1ZSgCmCv2SOygqVudDbUv3zuUpZ0FpMexj+sxbFGW5Ec4dqOA51iWrZbYxHIU0M99NdIb0kwUMHuXpfkTYj4O8CxrFedgm1EAXVQduoiTKGDshD2kay/IzY5F5l81uJ0LgM40mc4w2o1IlPRtS9x81F8jwKKNGyxBMhXg8BOfPoheOSr0C+RuSlrAKxc8AAAAAElFTkSuQmCC" id="10"/></item><item><costume name="healthy" center-x="8" center-y="6.75" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAABAUlEQVQ4T5WSO07DUBBFzzx/EqGYQAkFJWsA07AE1gESbAWQYBthCTR8tgAlBZTgOIKE2G+Q/RQcx3ziV87cc0dv5gqLbyU9JLPHqNkqW2Kf8M0579HlvFRqXJC84pm1hpkzeOOjvz7rVWCQWjzqRosOijKJTOlT9rrpM7Dx46Rm8YVxtOnAzlCRv4d986owWRXBT0/xOVlympNlnAlh8oAx261Aax+FcDjAyEE7UK8ENKY7umkFjnt7biPLnGLmnKNMI+PAIi25Xvy72WKjnhwVKapu4Cd3eLLzK1xAud6T9XerAFRHiglH1xiC2p8tUz57+yC3zcg1tqOxK1XieckXvJFLRgiVQEUAAAAASUVORK5CYII=" id="11"/></item><item><costume name="healthy but was sick" center-x="8" center-y="6.75" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAABAUlEQVQ4T5WSO07DUBBFzzx/EqGYQAkFJWsA07AE1gESbAWQYBthCTR8tgAlBZTgOIKE2G+Q/RQcx3ziV87cc0dv5gqLbyU9JLPHqNkqW2Kf8M0579HlvFRqXJC84pm1hpkzeOOjvz7rVWCQWjzqRosOijKJTOlT9rrpM7Dx46Rm8YVxtOnAzlCRv4d986owWRXBT0/xOVlympNlnAlh8oAx261Aax+FcDjAyEE7UK8ENKY7umkFjnt7biPLnGLmnKNMI+PAIi25Xvy72WKjnhwVKapu4Cd3eLLzK1xAud6T9XerAFRHiglH1xiC2p8tUz57+yC3zcg1tqOxK1XieckXvJFLRgiVQEUAAAAASUVORK5CYII=" id="12"/></item><item><costume name="immune" center-x="8" center-y="6.75" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAh0lEQVQ4T2NkQAfP5P9jiIEEpB4yIoujcBhwaYLpQNKM0EhIE5pmiEZiNSFppkAjqbZBbWUk2ZkDqJGiUOX6nMVwR2cq1hSDLqhyJZvhG+80RAJg+Xic4ZGeBV7NcpdOMPzhtwSpQU1yDP+tGJ4pHMWeVh9YMzAwHoPJoWmECqPHLVoCB6kCAB/SLh9Mgs9WAAAAAElFTkSuQmCC" id="13"/></item></list></costumes><sounds><list struct="atomic" id="14"></list></sounds><blocks></blocks><variables></variables><scripts><script x="30" y="46.99999999999997"><block s="receiveGo"></block><custom-block s="initialize"></custom-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="221" y="30"><block s="receiveOnClone"></block><custom-block s="cloneInitialize"></custom-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>immune</l></block><script><block s="doChangeVar"><l>population size</l><l>1</l></block></script></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></script></block><block s="doIf"><block s="reportOr"><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><block s="reportEquals"><block s="reportAttributeOf"><l><option>costume name</option></l><block s="reportGet"><l><option>self</option></l></block></block><l>healthy but was sick</l></block></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><block s="doIf"><block s="reportNot"><block s="reportGreaterThan"><block s="reportRandom"><l>1</l><l>100</l></block><block var="chance of death"/><comment w="90" collapsed="false">The chance of death</comment></block></block><script><block s="doChangeVar"><l>population size</l><l>-1</l></block><block s="doChangeVar"><l>infected counter</l><l>-1</l></block><block s="hide"></block><block s="doStopThis"><l><option>this script</option></l></block></script></block><block s="fork"><block s="reifyScript"><script><block s="doWait"><block var="time for infected to become healthy"/><comment w="90" collapsed="false">This script makes it so that after 3 seconds of them being sick, they&apos;ll turn back to being healhty or become immune</comment></block><block s="doChangeVar"><l>infected counter</l><l>-1</l></block><block s="doIfElse"><block s="reportNot"><block s="reportGreaterThan"><block s="reportRandom"><l>1</l><l>100</l></block><block var="chance for immunity"/></block></block><script><block s="doChangeVar"><l>population size</l><l>-1</l></block><block s="doSwitchToCostume"><l>immune</l></block></script><script><block s="doSwitchToCostume"><l>healthy but was sick</l></block></script></block></script><list></list></block><list></list></block></script></block></script></block></script></block></script><comment x="87" y="725" w="355" collapsed="false">5.2.3.1 What really matters is the population density but as the area where the population lives in the simulation is fixed, we can safely focus on the effects of population size.  A sensible hypothesis would be as population size (density) increases, the rate at which the disease spreads also increase (duration of outbreak decreases).</comment><comment x="79" y="815" w="332" collapsed="false">5.2.3.4 Some of the simplifying assumptions: &#xD;1) assume population is restricted to a fixed area, in reality population always in flux moving in/out of a locality.  (think international travelers for example)&#xD;2. assume there is no healing or immunity after infection&#xD;3. assume agents continue interacting after infection, in reality the sick will either die or be restricted in movement due to laying in hospital bed etc.).&#xD;</comment><comment x="75" y="955.9999999999999" w="328" collapsed="false">5.2.3.5 One possible hypothesis:  As POPULATION SIZE increases, the duration of outbreak (TIME ELAPSED) will decrease because the rate of infection increases.  &#xD;&#xD;5.2.3.6 A graph like an exponential decay is expected.</comment><comment x="1018" y="134.99999999999997" w="90" collapsed="false">See the hints page linked on the project page for some explanation of these blocks</comment></scripts></sprite><watcher var="speed" style="normal" x="10" y="10" color="243,118,29" hidden="true"/><watcher scope="Stage" s="getTimer" style="normal" x="113" y="5.000005999999985" color="4,148,220" hidden="true"/><watcher var="time elapsed" style="normal" x="3.888888888888914" y="6.777783777777763" color="243,118,29"/><watcher var="infected counter" style="normal" x="10" y="31.000002000000002" color="243,118,29"/><watcher var="percent initially sick" style="normal" x="10" y="52.00000399999999" color="243,118,29" hidden="true"/><watcher var="chance for immunity" style="normal" x="10" y="73.00000599999998" color="243,118,29" hidden="true"/><watcher var="chance of death" style="normal" x="10" y="94.00000799999998" color="243,118,29" hidden="true"/><watcher var="time for infected to become healthy" style="normal" x="10" y="115.00000999999997" color="243,118,29" hidden="true"/><watcher var="population size" style="normal" x="10" y="136.00001199999997" color="243,118,29" hidden="true"/></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.77778077777774"><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><script><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>How many people in the population? Enter 1-200.</l></block><block s="doSetVar"><l>population size</l><block s="getLastAnswer"></block></block><block s="doAsk"><l>What percentage of the population is infected initially? Enter 1-100.</l></block><block s="doSetVar"><l>percent initially sick</l><block s="getLastAnswer"></block></block><block s="doAsk"><l>What is the speed of the people? Enter 1-10.</l></block><block s="doSetVar"><l>speed</l><block s="getLastAnswer"></block></block><block s="doAsk"><l>What is the chance that someone dies? Enter 0-100.</l></block><block s="doSetVar"><l>chance of death</l><block s="getLastAnswer"></block></block><block s="doAsk"><l>What is the chance of gaining immunity to the disease? Enter 0-100.</l></block><block s="doSetVar"><l>chance for immunity</l><block s="getLastAnswer"></block></block><block s="doAsk"><l>How long should it take an infected to be cured? Enter a number</l></block><block s="doSetVar"><l>time for infected to become healthy</l><block s="getLastAnswer"></block></block></script></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><block-definition s="chance of death" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs></block-definition></blocks><variables><variable name="speed"><l>5</l></variable><variable name="population size"><l>103</l></variable><variable name="percent initially sick"><l>50</l></variable><variable name="time elapsed"><l>2</l></variable><variable name="infected counter"><l>103</l></variable><variable name="chance for immunity"><l>100</l></variable><variable name="chance of death"><l>0</l></variable><variable name="time for infected to become healthy"><l>0.5</l></variable></variables></project><media name="U5L2p3 Disease Spread" app="Snap! 6, https://snap.berkeley.edu" version="1"></media></snapdata>