A quantity of water at 0 °C is heated to 30 °C. For each degree…