An electric heater of power 3 kW is used for 10 hours. How much energy does it consume? Express your answer in (i) kWh, (ii) joule.