Water heating is a thermodynamic process using an energy source to heat water above its initial temperature.…