Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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 .20

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Distributed Relational Database Architecture Connectivity Guide

Authors: Teresa Hopper

4th Edition

0133983064, 978-0133983067

More Books

Students also viewed these Databases questions