Explain why you cannot convert the following if-else-if statement into a switch statement. if (temp == 100)

Question:

Explain why you cannot convert the following if-else-if statement into a switch statement. 

if (temp == 100)
 x = 0;
else if (population > 1000)
 x = 1;
else if (rate < .1)
 x = -1;

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: