Water heaters make our lives more comfortable by enabling us to use hot water in our homes. They are useful in…