Question: 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

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!