Show that heat produced in a cycle

Show that heat produced in a cycle of AC is same as the heat produced by DC with I = ${ I }_{ rms }$

For an AC, { I }_{ t } =
{ I }_{ 0 } sin ω t