when
q = m*Cp*ΔT
when q is Heat energy in Joules
and m is the mass of the substance in Kg
and Cp is the specific heat (J/Kg.K)
and Δ T is the change in temperature in Kelvin
so, by rearranging the formula we can get the specific heat Cp from:
∴Cp = q / m*ΔT