Problem

An epidemic of a new strain of flu (i.e., one for which a vaccine is not available) begins...

An epidemic of a new strain of flu (i.e., one for which a vaccine is not available) begins with a single case on a college campus of 40,000 faculty, staff, and students. Three days later a second case is reported, and in the following days the reported cases are as shown in the table below. The day of the initial case report is noted as day 0.

Day #

0

3

5

6

7

8

9

10

11

Total cases

1

2

3

4

5

7

9

11

15

A math professor observes that the number of cases seems to be increasing by about 28% per day and proposes the following model to predict the total number of cases by day number x:

Write a function that implements this model. Test your function with a main function that prompts the user three times to enter a day number and then calculates and displays the number of cases predicted for each day number entered.

Sample run:

FLU EPIDEMIC PREDICTIONS BASED ON ELAPSED DAYS SINCE FIRST CASE REPORTEnter day number>> 7By day 7, model predicts 5 cases total.Enter day number>> 10By day 10, model predicts 11 cases total.Enter day number>> 20By day 20, model predicts 138 cases total.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 3