First, we need to know how much heat it takes to raise the temperature of the ice to 0 C:
Q=mcΔT
=(1kg)(2.20×103J/kg⋅oC)(5oC)
=1.1×04J
Next, we need to know how much heat it takes to melt the ice into water:
Q=mqfusion
=(1kg)(3.3×105J/kg)
=3.3×105J
Last, we need to know how much heat it takes to warm the water up to 10 C.
Now we just add the three figures together to get our answer:
1.1×104+3.3×105+4.2×104=3.8×106
Note that far more heat was needed to melt the ice into liquid than was needed to increase the temperature.