السلام عليكم ....

لو سمحتم يااخواني انا طالب جامعي وواجهني سؤال صعب عن البرمجه في لغة سي بلس بلس باستخدام برنامج فيجوال سي بلس بلس وعجزت عن فهم هذا السؤال واتمنى من المحترفين الاجابه عنه ولكم جزيل الشكر والعرفان والسؤال هو :


Write a program to assist in the design of a hydroelectric dam. Prompt the user for the height of the dam and for the number of cubic meters of water that are projected to flow from the top to the bottom of the dam each second. Predict how many megawatts (1MW = 106W) of power will be produced if 90% of the work done on the water by gravity is converted to electrical energy. Note that the mass of one cubic meter of water is 1000 kg. Use 9.80 meters/second2 as the gravitational constant g. Be sure to use meaningful names for both the gravitational constant and the 90% efficiency constant. For one test run, use a height of 170 m and flow of 1.30 x 103 m3/s. The relevant formula (w = work, m = mass, g = gravity, h = height) is w = mgh