Write a function print_power_outputs(dam_records) that takes a list of (name, flow, head, efficiency) tuples for hydro-dams and prints the power output for each dam in the format shown below. The...


Write a function print_power_outputs(dam_records) that takes a list of (name, flow, head, efficiency) tuples for hydro-dams<br>and prints the power output for each dam in the format shown below. The power output should be printed to 2 decimal<br>places.<br>The power output for a hyrdo-dam is calculate using the following formula:<br>Power = 9.81 x flow x head x efficiency<br>Where:<br>• 9.81 is the gravitational constant in m/s2<br>• power is in Watts<br>• flow is the rate of flow through the turbines, in m/s<br>• head is the net effective head in metres (basically, the height/depth of the water in the dam)<br>efficiency is the overall efficiency of the system as a value between 0 and 1 (e.g. 90% efficiency would be 0.9)<br>For example:<br>T.<br>Result<br>Test<br>[('Dammy', 3, 10, 0.875),<br>The Dammy dam has a power output of 257.51 Watts.<br>dams<br>('Damuel', 4, 8, 0.75),<br>The Damuel dam has a power output of 235.44 Watts.<br>('Damielle', 4, 8, 0.75)] The Damielle dam has a power output of 235.44 Watts.<br>print_power_outputs (dams)<br>

Extracted text: Write a function print_power_outputs(dam_records) that takes a list of (name, flow, head, efficiency) tuples for hydro-dams and prints the power output for each dam in the format shown below. The power output should be printed to 2 decimal places. The power output for a hyrdo-dam is calculate using the following formula: Power = 9.81 x flow x head x efficiency Where: • 9.81 is the gravitational constant in m/s2 • power is in Watts • flow is the rate of flow through the turbines, in m/s • head is the net effective head in metres (basically, the height/depth of the water in the dam) efficiency is the overall efficiency of the system as a value between 0 and 1 (e.g. 90% efficiency would be 0.9) For example: T. Result Test [('Dammy', 3, 10, 0.875), The Dammy dam has a power output of 257.51 Watts. dams ('Damuel', 4, 8, 0.75), The Damuel dam has a power output of 235.44 Watts. ('Damielle', 4, 8, 0.75)] The Damielle dam has a power output of 235.44 Watts. print_power_outputs (dams)

Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here