# One major source of electricity is hydroelectric generation, in which flowing water

One major source of electricity is  hydroelectric generation, in which flowing water is redirected to turn a  turbine generator. The power generated by this water flow is given by  this formula:  P = rho times Q times H times g  P is the power generated  by the water flow (watts = J/s = kg-m^2/s^2-1/s).  rho is the water  density (kg/m^3).  Q is the volume flow rate (m^3/s).  g is the  acceleration caused by gravity (9.81 m/s^2).  H is the distance (in m)  water falls on its way to the generator, known as the head.  a. Using  this formula, write, compile, and run a C++ program that determines the  watts generated by a head of 14 meters of water flowing at 20 m^3/s. The  density of water is 998 kg/m^3 at 20 degree C.  b. After verifying that  your program is working correctly, use it to determine and display a  table of the watts generated by a head of 10 to 28 meters of water, in  2-meter increments, flowing at 20 m^3/s.

• Posted: 7 days ago