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 dataMetDatacsv into winddata.
Once the data is read into winddata, your program will use winddata to work out the average wind speed in kmh 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 winddata and when a value of speed is found that matches the average speed that was printed out, the date and time stored in winddata for this speed is printed on a new line.
Some things to consider:
Is it possible that the average speed would not be in winddata?
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 NA 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
