Question: please use if with if and for in matlab Write a program (using nested if with if and for) that does the following. - Asks
please use if with if and for in matlab

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 - NN=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
Get step-by-step solutions from verified subject matter experts
