You will write four small functions for an electric heater experiment. Use SI units: joule, kilogram, second, watt and degrees Celsius.
The idea. A heater of power working for a time supplies . A mass that takes in this energy and rises by has a specific heat capacity . If we want the rise, then .
Your tasks.
energy, return the energy in J from the power power in W and the time seconds in s.specific_heat, return in J/(kg °C) from energy, mass and rise.temperature_rise, return the rise in °C from energy, mass and c.percent_above, return by what percentage measured is above accepted.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…