Answer:
The equivalent if statements is:
ranforce = randi([0, 12]);
if (ranforce == 0)
disp('There is no wind')
else if(ranforce>0 && ranforce <7)
disp('There is a breeze')
else if(ranforce>6 && ranforce <10)
disp('This is a gale')
else if(ranforce>9 && ranforce <12)
disp('It is a storm')
else if(ranforce==12)
disp('Hello, Hurricane!')
end
Explanation:
<em>The solution is straight forward.</em>
<em>All you need to do is to replace the case statements with corresponding if or else if statements as shown in the answer section</em>
D. An inspection report!
Hope this helps!
Templates help Nathan to create multiple worksheets with common styles. He needs to save them with the xls extension.
Answer:In mathematics and mathematical logic, Boolean algebra is the branch of algebra in which the values of the variables are the truth values true and false, usually denoted 1 and 0, respectively.
Explanation:
Answer:
Input: Take 3 numbers A, B and C
Processing: Find average of 3 numbers using formula: Average= A+B+C/3
Output: The output is Average of three numbers.
Explanation:
We need to write an algorithm to compute and print out the average of 3 numbers A,B,C
An algorithm has Input, Processing and Output
The algorithm required is:
Input: Take 3 numbers A, B and C
Processing: Find average of 3 numbers using formula: Average= A+B+C/3
Output: The output is Average of three numbers.