Question
There are P individuals in the population. Scattered randomly among them are V individuals who have a virus. Each person with the virus will have
There are P individuals in the population. Scattered randomly among them are V individuals who have a virus. Each person with the virus will have it for three days. Each day each individual meets M other individuals, running into them randomly. If a healthy individual meets an infected individual, he catches the virus with probability R. After the three days of infection, the individual is then immune to the virus.
Write a program to simulate day after day the health of the population, using the values in the table below.
Track the average number of sick individuals a day, the maximum number of sick individuals in a day, the number of individuals who never get sick, and the number of days until the virus has run its course and no individual is sick.
Deliverables are working source code and results of three runs with the three sets of parameters above.
First trial Second Trial Third Trial P. 1,000,000 1,000,000 1,000,000 V 10 100 200 M 5 10 20 IR .10 .15 .20 First trial Second Trial Third Trial P. 1,000,000 1,000,000 1,000,000 V 10 100 200 M 5 10 20 IR .10 .15 .20Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started