Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question 19 of 25 what would this algorithm instruct a user to do if th…

Question

question 19 of 25
what would this algorithm instruct a user to do if the temperature is 35
degrees?
steps:

  • check temperature outside
  • if temperature is over 60 degrees
  • then put on t - shirt
  • if temperature is below 60 degrees
  • then put on sweater
  • if temperature is below 30 degrees
  • then put on coat

a. put on a t - shirt
b. put on a sweater
c. put on a coat
d. put on a t - shirt and a coat

Explanation:

Brief Explanations
  1. First, check the temperature (35 degrees).
  2. Compare with 60: 35 < 60, so skip the T - shirt step.
  3. Compare with 60 (below 60) and 30 (35 > 30), so follow the "below 60 degrees" instruction to put on a sweater.

Answer:

B. Put on a sweater