1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
gulaghasi [49]
3 years ago
5

The electricity generated by wind turbines annually in kilowatt-hours per year is given in a file. The amount of electricity is

determined by, among other factors, the diameter of the turbine blade (in feet) and the wind velocity in mph. The file stores on each line the blade diameter, wind velocity, and the approximate electricity generated for the year. For example,
5 5 406
5 10 3250
5 15 10970
5 20 26000
10 5 1625
10 10 13000
10 15 43875
10 20 104005

Required:
Determine how to graphically display this data.

Engineering
2 answers:
Anika [276]3 years ago
5 0

Answer:

Steps:

1. Create a text file that contains blade diameter (in feet), wind velocity (in mph) and the approximate electricity generated for the year

2.  load the data file for example, in matlab, use ('fileame.txt') to load the file

3. create variables from each column of your data

  for example, in matlab,  

     x=t{1}

     y=t{2}

4. plot the wind velocity and electricity generated.

   plot(x, y)

5. Label the individual axis and name the graph title.

    title('Graph of wind velocity vs approximate electricity generated for the year')

     xlabel('wind velocity')

     ylabel('approximate electricity generated for the year')

Alona [7]3 years ago
3 0

Answer:

This problem is solved using Matlab, code along with step-by-step explanation and output results are provided below.

Matlab Code with Explanation:

% load the .txt file named data in which data is stored and store the data in a variable D

D=load('data.txt')  

% the 2nd column of data contains speed of the wind turbine so store it in a variable named speed

speed=D(:,2);

% the first 4 data points are for 5 feet blade diameter so extract and store them in variable speed_5

speed_5=speed(1:4);

% from the 5th data point to the end of vector contains data for 10 feet blade diameter so extract and store them in variable speed_10.

speed_10=speed(5:end);

% the 3rd column of data contains generated electricity of the wind turbine so store it in a variable named kwh

kwh=D(:,3);

% the first 4 data points are for 5 feet blade diameter so extract and store them in variable kwh_5

kwh_5=kwh(1:4);

% from the 5th data point to the end of vector contains data for 10 feet blade diameter so extract and store them in variable kwh_10.

kwh_10=kwh(5:end);

% Plot the speed _5 on x-axis and corresponding kwh_5 on y-axis

plot(speed_5,kwh_5,'LineWidth',2)

% hold on means we want to plot another curve in the same graph so wait

hold on

% Plot the speed _10 on x-axis and corresponding kwh_10 on y-axis

plot(speed_10,kwh_10,'LineWidth',2)

% legend command provides visual aid to distinguish between the two curves

legend('5 feet blade','10 feet blade')

% set the title of the graph, x-axis and y-axis labels

title('Generated Electricty Vs Wind speed')

xlabel('Wind speed (mph)')

ylabel('Generated Electricity (kWh)')

Output:

As you can see in the attached graph, 2 curves are being plotted one for 5 feet blade diameter and 2nd for 10 feet blade diameter of the wind turbine.

The generated electricity corresponding to 10 feet blade diameter is way more than the 5 feet blade diameter.

You might be interested in
A furnace uses preheated air to improve its fuel efficiency. Determine the adiabatic flame temperature when the furnance is oper
balu736 [363]

Answer:

2543 k

Explanation:

This problem can be resolved by applying the first law of thermodynamics

<u>Determine the adiabatic flame temperature</u> when the furnace is operating at a mass air-fuel ratio of 16 for air preheated to 600 K

attached below is a detailed solution

cp = 1200

8 0
3 years ago
Suppose you have two arrays: Arr1 and Arr2. Arr1 will be sorted values. For each element v in Arr2, you need to write a pseudo c
brilliants [131]

Answer:

The algorithm is as follows:

1. Declare Arr1 and Arr2

2. Get Input for Arr1 and Arr2

3. Initialize count to 0

4. For i in Arr2

4.1 For j in Arr1:

4.1.1 If i > j Then

4.1.1.1 count = count + 1

4.2 End j loop

4.3 Print count

4.4 count = 0

4.5 End i loop

5. End

Explanation:

This declares both arrays

1. Declare Arr1 and Arr2

This gets input for both arrays

2. Get Input for Arr1 and Arr2

This initializes count to 0

3. Initialize count to 0

This iterates through Arr2

4. For i in Arr2

This iterates through Arr1 (An inner loop)

4.1 For j in Arr1:

This checks if current element is greater than current element in Arr1

4.1.1 If i > j Then

If yes, count is incremented by 1

4.1.1.1 count = count + 1

This ends the inner loop

4.2 End j loop

Print count and set count to 0

<em>4.3 Print count</em>

<em>4.4 count = 0</em>

End the outer loop

4.5 End i loop

End the algorithm

5. End

6 0
3 years ago
JAVA HADOOP MAPREDUCE
taurus [48]

Answer:

Explanation:

package PackageDemo;

import java.io.IOException;

import org.apache.hadoop.conf.Configuration;

import org.apache.hadoop.fs.Path;

import org.apache.hadoop.io.IntWritable;

import org.apache.hadoop.io.LongWritable;

import org.apache.hadoop.io.Text;

import org.apache.hadoop.mapreduce.Job;

import org.apache.hadoop.mapreduce.Mapper;

import org.apache.hadoop.mapreduce.Reducer;

import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;

import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;

import org.apache.hadoop.util.GenericOptionsParser;

public class WordCount {

public static void main(String [] args) throws Exception

{

Configuration c=new Configuration();

String[] files=new GenericOptionsParser(c,args).getRemainingArgs();

Path input=new Path(files[0]);

Path output=new Path(files[1]);

Job j=new Job(c,"wordcount");

j.setJarByClass(WordCount.class);

j.setMapperClass(MapForWordCount.class);

j.setReducerClass(ReduceForWordCount.class);

j.setOutputKeyClass(Text.class);

j.setOutputValueClass(IntWritable.class);

FileInputFormat.addInputPath(j, input);

FileOutputFormat.setOutputPath(j, output);

System.exit(j.waitForCompletion(true)?0:1);

}

public static class MapForWordCount extends Mapper<LongWritable, Text, Text, IntWritable>{

public void map(LongWritable key, Text value, Context con) throws IOException, InterruptedException

{

String line = value.toString();

String[] words=line.split(",");

for(String word: words )

{

Text outputKey = new Text(word.toUpperCase().trim());

IntWritable outputValue = new IntWritable(1);

con.write(outputKey, outputValue);

}

}

}

public static class ReduceForWordCount extends Reducer<Text, IntWritable, Text, IntWritable>

{

public void reduce(Text word, Iterable<IntWritable> values, Context con) throws IOException, InterruptedException

{

int sum = 0;

for(IntWritable value : values)

{

sum += value.get();

}

con.write(word, new IntWritable(sum));

}

}

}

3 0
3 years ago
Electric heater wires are installed in a solid wall having a thickness of 8 cm and k=2.5 W/m.°C. The right face is exposed to an
Svet_ta [14]

Answer:

2.46 * 10⁵ W/m³

Explanation:

See attached pictures for detailed explanation.

6 0
4 years ago
Read 2 more answers
The question “How do plants convert sunlight to energy?” best represents which of the following?
OverLord2011 [107]

Answer:

D

Explanation:

I would say this awnser because its the only one that makes sence to me

5 0
3 years ago
Other questions:
  • Which is the correct order for handwashing
    11·2 answers
  • What is the federal E-Rate program?
    11·1 answer
  • Two pressure gauges measure a pressure drop of 16.3 psi (lb/in.2) at the entrance and exit of an old buried pipeline. The origin
    13·1 answer
  • What is the lowest Temperature in degrees C?, In degrees K? in degrees F? in degrees R
    5·1 answer
  • If 100 J of heat is added to a system so that the final temperature of the system is 400 K, what is the change in entropy of the
    5·1 answer
  • What are the major types of stone used in construction? How do their properties differ? What sequence of operations would be use
    10·1 answer
  • A Styrofoam cup (k = 0.010 W/(m∙ o C)) has cross-sectional area (A) of 3.0 x 10 −2m 2 . The cup is 0.589 cm thick (L). The tempe
    12·1 answer
  • Explain crystallographic defects.
    11·1 answer
  • 9. An automobile's oxygen sensor output needs
    14·1 answer
  • Which of the following is most likely to require changes to existing zoning laws?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!