Usually, this question is answered like this:
q=heat change of calorimeter
mcwaterΔt=heat change of water
CcalorimeterΔt=heat change of calorimeter, so
q=mwatercwaterΔtwater+CcalorimeterΔtcalorimeter
q=(1200g)(4.184 J/gC)(23.05-21.22 C)+(1726 J/C)(23.05-21.22 C)
q=12346.644 J
Since the calorimeter got warmer, it's endothermic with respect to the calorimeter and exothermic with respect to the reaction. same number, opposite signs:
|+qcalorimeter|=|-qrxn|
qrxn= -12346.644 J
Or, in kJ
qrxn= -12.346 kJ
Calculate the heat of combustion per gram of octane.
This should, again, be a negative value since it's exothermic .Divide the energy by the grams.
-12346.644 J / 0.1111g C8H18
= -111130.9 J/g
OR
-12.346644 kJ / 0.1111g C8H18
= -111.1309 kJ/g