This is a simulation of the spread of an epidemic. Use the slider to control what percentage of the population stays at home, then click the Green Flag. The graph shows how the number of sick people changes over time Color Code: Healthy/Blue, Sick/Red, Recovered/Green
Notice how the curve of sick people "flattens" if more people stay at home. Try modifying the code to see what happens if: * Sick people recover more quickly -- or more slowly * There are more people in the community * The virus spreads probabilistically when people contact This project was inspired, in part, by simulations in a Washington Post article: https://www.washingtonpost.com/graphics/2020/world/corona-simulator/ March 17: Thanks to suggestion from Falcon0327, I changed the setup procedure to run without screen refresh, so that people are generated all at once.