Question: The code below determines the physical state of a water sample according to the water temperature. What is the 'resultLabel' text set to if the

The code below determines the physical state of a water sample according to the water temperature. What is the 'resultLabel' text set to if the temperaturelnput is 115?
initialize app variable temperature to 0
when submitButton * Click *
do set app variable temperature grad to temperaturelnput grad 's Text *
do set resultLabel grad 's Text grad to C Your water is frozen!
else if
app variable temperature
and
app variable temperature :
do
set resultLabel grad 's Text grad to
Your water is liquid!
else set resultLabel grad 's Text ?grad to C Your water turned into gas!
Your water turned into gas!
Your water is liquid!
Your water is frozen!
The code will not print anything to the resultLabel
 The code below determines the physical state of a water sample

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!