Answered step by step
Verified Expert Solution
Question
1 Approved Answer
can please solve this in the same way of the given solution I have tried to solve the question but the professor said that there
can please solve this in the same way of the given solution
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. distancing levels to control spreading accordiners estimate in advance how to plan social 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 "DNum". 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. displays the "ENimm" value bere 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 ru-input('enter the Inftial number of infected:'): TNand input('enter the threshold nubber of infected to contain spreadf'); ino input ( enter the number of days for which estimate is required:? ) : ENun-IN; Hated; for k=4:4:N0 ENun-ENuE+ENUN (2M/16e) end 1f ENun \&.TNun end ENun=IN: M-75; for k=44:ND Eleun-ENuniERuan (2//100)I - end Ethun-IN) hesej for ke414:v0 ENum=ENum+ENun* (2%/100)} end ENuneing H-25F for k=4:4: MD I have tried to solve the question but the professor said that there are many missing things
So please build your answer on my answer if it is correct
" use matlab please"
Step 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