Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please complete the answer for question 4 IN MATLAB. please don't use any other programming system Social distancing seems to be most effective way to

please complete the answer for question 4 IN MATLAB. please don't use any other programming system
image text in transcribed
image text in transcribed
image text in transcribed
Social distancing seems to be most effective way to control the spreading of an infectious disease so it becomes important to develop codes to support planning for effective of social distancing for controlling the spread of disease. In this project, we will write codes regarding this. All computer codes will be developed on assumption given below - In case of no social distancing (i.e. 100% socialization), 1 infected person infects 2 more in 4 days - In case of M% socialization, 1 infected person infects 2100M more in 4 days Some examples of rate of spreading with respect to socialization is given in table below. Question for the main code that can help planners estimate in advance how to plan social distancing levels to control spreading according to desired level. (10 points) Q.4 Write a program (using nested if with if and for) that does the following. - Asks the official to enter the initial number "IN" of infected - Asks the threshold number "TNum" under which the officials are targeting to contain the total number of infected - Asks the number of days " ND " for which estimate is required Uses the above input and finds which socializing percentage out of 100%,75%,50%,25%,0% will be needed to keep total expected number "ENum" of infected lower than threshold number "TNum". Note: "ENum" denotes the total expected number of infected in "ND" days (starting with "IN" number of infected) with M% socialization In the end, the program displays following. Dear Planning Officer: We need percent socializing to keep total infected as which is lower than threshold Explanation about output. If - IN=2 - TNum =300 - ND=25 Then the program should display Dear Planning Officer: We Need 50.000000 percent socializing to keep total infected as 128.000000 which is lower than threshold 300.000000

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

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions