Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

1-4 How will MIS help my career?

Answered: 1 week ago