A boiler is a closed vessel in which water or other fluid is heated. The heated or vaporized fluid exits…