Answer:
The answer is the dam generates electricity taking advantage of energy flowing from high to low.
Step-by-step explanation:
Basically, what the dam does is to store gravitational potential energy and converts it to kinetic energy. This conversion can be made since the water at one side is higher that the other side of the dam, therefore the higher side stores the potential energy and when it goes to the other side, the energy stored is converted to kinetic energy, which turn turbines generating electricity.