Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is c programming. please help me to write this code. 9. An epidemic of a new strain of flu i.e., one for which a
This is c programming. please help me to write this code.
9. An epidemic of a new strain of flu i.e., one for which a vaccine is not avail able) 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 # Total cases 0 10 4 7 9 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 num ber of cases by day number x 40000 Casestx)-1+39999(01) 0.24682 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 calcu lates and displays the number of cases predicted for each day number entered. Sample run: FLU EPIDEMIC PREDICTIONS BASED ON ELAPSED DAYS SINCE FIRST CASE REPORT Enter day number 7 By day 7, model predicts 5 cases total Enter day number>> 10 By day 10, model predicts 11 cases total. Enter day number>20 By day 20, model predicts 138 cases totalStep 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