Answered step by step
Verified Expert Solution
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started