A Dam is a barrier constructed to hold back water and raise its level, forming a reservoir used to generate…