A 1.2kW heater warms 0.50kg of ice from −20∘C until it is all steam at 100∘C. You will make the program find the heat and the time for each stage, and which stage takes longest.
The idea. Warming: mcΔT (ice 2100J kg−1K−1, water 4186J kg−1K−1). Changes of state: mL (Lf=3.34×105J/kg, Lv=2.26×106J/kg). Time =Pheat.
Your tasks.
Work out Q, the heat for each of the four stages, in the order of names.
Work out t, the time for each stage.
Find the total time, and the name of the longest stage.
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.