Hydroelectricity is generated by storing water behind a dam, and then letting some of it run through generators in the dam to turn them. If the system is the water, what is the environment that is doing work on it? If a dam has water 100m deep behind it, how much energy was generated if 10,000kg of water exited the dam at 2m/s?