You will write three small functions about a room with a heater. Use watt, joule, second and degrees Celsius.
The idea. The room loses loss_per_degree watts for each degree that the inside is warmer than the outside. The net power is the heater power minus the loss. At a steady temperature the net power is zero. One step of one minute raises the temperature by .
Your tasks.
net_power, return the net power in W for the heater, the loss_per_degree, the inside and the outside temperatures.steady_temperature, return the steady temperature in .temperature_after, return the temperature after minutes minutes, with the room starting at the outside temperature. Use one-minute steps and the heat capacity in J/.Have you tried it?
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.
Log in to join the discussion.
Loading…