The two primary objectives in a domestic hot water plumbing system are: 1. Heat the water in a cost-effective manner.…