A 4-kW resistance heater in a water heater runs for 3 hours to raise the water temperature to the desired level. Determine the amount of electric energy used in both kWh and kJ.