Question: Here is the input data file farm.txt Make sure this is in basic C programming language! Thank you so much!! NGR 200 FALL 2018 P6:

 Here is the input data file farm.txt Make sure this is

in basic C programming language! Thank you so much!! NGR 200 FALL

Here is the input data file farm.txt

2018 P6: WIND FARMS (input/output data files, user-defined functions, loops) DUE: October

Make sure this is in basic C programming language!

Thank you so much!!

NGR 200 FALL 2018 P6: WIND FARMS (input/output data files, user-defined functions, loops) DUE: October 29, 2018 at 11:59 p.m. CT POINTS: 60 INTRODUCTION: Wind turbines convert the kinetic energy of moving air to electrical energy. It is key to know how much energy a wind turbine can produce for a given wind speed. A relation for the available power in wind is where Pwini is the power available in the wind (W), p is the density of air (use 1.2754 kg/m3), A is the area swept by the blades (m') (hint: this will be a circle), and v is the velocity of the wind (m/s) (for this problem, use 11 m/s). However, the available power in the wind is not the maximum power the wind turbine can produce. The maximum power that can be produced is Pwind,max CpPwind where Cp is the power coefficient, which is also known as the Betz limit (unitless). Modern wind turbines have power coefficients ranging from 0.45 to 0.5 (for this problem, use 0.48). In addition, the gear box, generator, and bearings impose energy losses that further limit the output power of the turbine. Therefore, for each turbine, the amount of electricity in Watts that can be produced is Pelect - Pwind max where n is the combined efficiency of the gear box, generator, and bearings (use 0.33). An input data file called farms.txt contains turbine blade diameters and numbers of wind turbines for several potential wind farm configurations. The first record line of the input file is the control number, which defines the number of data points to be read into the program. Each succeeding record line has two columns. The first column is the turbine blade diameter, and the second column is the number of wind turbines. The input file is space delimited. ASSIGNMENT: Write a C program that will read the required values from the input file. Using the turbine blade diameter and number of turbines available, write three separate user-defined functions to compute the available power in the wind, the maximum available power that can be produced, and the amount of electricity produced by the turbines. Print the turbine blade diameter, the number of turbines available, and the amount of electricity (irn kW) produced by each farm configuration to the screen and to an output file called power.txt

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!