Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

state instructure.com/courses/1621988/quizzes/2372423/take/questions/47123644 Co

ID: 3787665 • Letter: S

Question

state instructure.com/courses/1621988/quizzes/2372423/take/questions/47123644 Comments are not required, but you may use them to clarify what you were trying to do. Unless explicitly stated otherwise stated, assume calculate" means write a MATLAB program to calculate the answer: do not calculate by hand. Output means what shows up in the command window D Question 2 3 pts For the following, give a value of x that will 1) Make y be 0 2) Make y be 20 3) Make y be 16 if x 10 66 x 20 y 20; else if x 5 else if x -5 end HTML Editor T op H TT Font Sizes Para O2 W

Explanation / Answer

1) Make y be 0:

It means the if should not be entered. We can use x=-5 or anything less than that.

2) Make y be 20:

It means you should satisfy the if condition. So x = 11 will work. Any x from 11 to 19 will work.

3) Make y be 16:

It means you should satisfy any of the two elseif conditions. So x = 8 will work or x = -4 will also work.