The given mass of water is,
![m=1\text{ kg}](https://img.qammunity.org/2023/formulas/physics/college/v58ammvr2zs8zdv8xs37ae6smhrt442m8m.png)
The value of the raise in the temperature is,
![\Delta T=5^cC](https://img.qammunity.org/2023/formulas/physics/college/ephvrmvrnv12lec5ff56j5h3vghxznb35l.png)
The value of the specific heat of the water is,
![c=4200\text{ }Jkg^(-1)C^(-1)](https://img.qammunity.org/2023/formulas/physics/college/7q2ga7t2plvvy5haivm9wwt0xce1v4l0a2.png)
Thus, the energy needed to increase the temperature of water is,
![\begin{gathered} Q=mc\Delta T \\ Q=1*4200*5 \\ Q=21000\text{ J} \\ Q=21*10^3\text{ J} \\ Q=21\text{ kJ} \end{gathered}](https://img.qammunity.org/2023/formulas/physics/college/safhiz0ef5uiuutc0s83w37eljuz71a16z.png)
Hence, the amount of energy required to raise the temperature of the water to 5 degree C is 21 kJ.