Starter Epidemic Model Wadeez

We start colliding turtles from a new project.

Here are the guidelines:
1. Create 300 blue (healthy) turtles and 5 red (sick) turtles. The turtles should wiggle walk.
2. Create a transmission rate slider and a recovery rate slider; set the maximum of each to 100.
3. Use the value in the transmission rate slider as the probability of passing on the disease.
4. Use the value in the recovery rate slider as the probability of recovering from the disease.
(Use random number generation for 3 and 4 to roll a 100 sided dice)
5. When turtles collide, there should be a chance for infection.
6. While forever it toggled, there will be a chance to recover.
7. Setup a line graph called population that shows the breeds of healthy and sick turtles with red and blue lines. The x axis will be time. The y-axis will be population.
8. Create an Infect! button that will give everyone a chance of getting infected based on the transmission rate when the button is pressed.

Engine speed5
Loading...
0%

Loading...