Provide an if statement that implements this logic: When the water temperature is less than 120 F,
Question:
Provide an if statement that implements this logic:
When the water temperature is less than 120 °F, turn the heater on by assigning the value “on” to a heater string variable. When the water temperature is greater than 140 °F, turn the heater off by assigning the value “off” to a heater string variable. Don’t do anything when the water temperature is between these two temperatures.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Introduction To Programming With Java A Problem Solving Approach
ISBN: 9781260575248
3rd International Edition
Authors: John Dean
Question Posted: