A heat pump delivers 15kJ of heat to a room for every 4kJ of mechanical work supplied to it.
(i) Calculate the coefficient of performance of the device in the heat-pump mode.
(ii) Determine the coefficient of performance if the same device is used as a refrigerator operating between the same two reservoirs.