Programming Essentials question 8

Programming
Tutor: None Selected Time limit: 1 Day

Question 8

  1. What would be the output of the following expression if the temperature outside is 30 degrees?

If temperature >=35 and temperature <= 55 then

   output “it is cold outside”

else output “The weather is nice today”

A.

The weather is nice today

B.

The temperature is 45

C.

it is cold outside

D.

none of the above

Jun 26th, 2015

Thank you for the opportunity to help you with your question!

Since the temperature outside is 30 degrees, the "if" condition is not satisfied.

Hence, the output will be

The weather is nice today


ANSWER:  A. The weather is nice today

Please let me know if you need any clarification. I'm always happy to answer your questions.
Jun 26th, 2015

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
Jun 26th, 2015
...
Jun 26th, 2015
Dec 4th, 2016
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer