An illustration of a simple dam; a dam is a barrier that impounds water or underground streams. Dams…