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

 please use if with if and for in matlab Write a

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!