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
initialize app variable temperature to
when submitButton Click
do set app variable temperature grad to temperaturelnput grad s Text
do set resultLabel grad s Text grad to 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 to 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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
