Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C + + program to read data from the file data / MetData - 3 1 - 3 . csv into wind _

Write a C++ program to read data from the file data/MetData-31-3.csv into wind_data.
Once the data is read into wind_data, your program will use wind_data to work out the average wind speed in km/h and the sample standard deviation (SD). The numbers are printed to the screen on a new line with appropriate text information to show what the numbers represent.
The program will go through wind_data and when a value of speed is found that matches the average speed that was printed out, the date and time stored (in wind_data) for this speed is printed on a new line.
Some things to consider:
Is it possible that the average speed would not be in wind_data?
What does it mean, when you need to match and the values being matched are floating point values?
What values could be in the data file if a sensor is offline? What would happen to your program if, say, a value of N/A (or some other notation) value is there for an offline sensor.
Should any offline sensor value take part in the average and SD calculation?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions

Question

In Exercises 1 through 10, find the indicated product. 3x(x 9)

Answered: 1 week ago

Question

What does this public think about this issue?

Answered: 1 week ago

Question

What benefits can you offer this public?

Answered: 1 week ago

Question

How free does this public see itself to act on this issue?

Answered: 1 week ago