#### Answer

Please see the work below.

#### Work Step by Step

We know that
$COP=\frac{T_c}{T_h-T_c}$
We plug in the known values to obtain:
$COP=\frac{273+4}{(273+30)-(273+4)}$
$COP=10.654$
Now we can find the rate of electrical energy as
$P=COP\space P_c$
We plug in the known values to obtain:
$P=(10.654)(340)$
$P=3600W$