6.12 The energy required to heat water at constant pressure is approximately
equal to
where
m = mass of the water, in grams,
$C_p$ = heat capacity of water, 1 cal/g K, and
$\Delta T$ = change in temperature, K.
(a) Create an anonymous function called heat to find the energy required
to heat 1 gram of water if the change in temperature is provided as
the input.
(b) Your result will be in calories:
$\frac{g \frac{cal}{g \ K} K}{g} = cal$
E = mC<sub>p</sub>?T