6.12 The energy required to heat water at constant pressure is approximately
equal to
$$E = mC_p \Delta T$$
where
$$m = \text{mass of the water, in grams,}$$
$$C_p = \text{heat capacity of water, 1 cal/g K, and}$$
$$\Delta T = \text{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 \text{ cal}}{\text{g K}} = \text{cal}$$