This answer is not correct. You probably divided by both the temperature change and the number of grams. You needed to multiply by both of these terms so that the units would cancel. Remember that specific heat has the units of calorie/gram x degree.