Using the while loop supplied below, answer the following questions assuming that iX has a value of 30 and iY has a value of 40 before entering the loop.
while (iY>27)
{
iY--;
if(iY==33)
cout << "Yay!";
iX=iX+2;
}
What is the value of of iX after the loop is finished?
What is the value of iY after the loop is finished?
How many times is the statement iX=iX+2; inside the loop executed?
Is "Yay!" printed in the output?
--compile code in c++ show steps and explain
3.)3. Develop a thermostat output where the thermostat tells you if the room is "Frigid", "Smoldering", or "Comfy" depending on the temperature inputted by the user. Use the following temperature ranges:
T >= 90 then print "Smoldering"
45 < T < 90 then print "Comfy"
T <= 45 then print "Frigid"
The user should be able to enter in new values of the temperature indefinitely where the program only exits if they user enters a value of -100.
--compile code in c++ and show steps