Write a program to generate a data file named wind.dat that contains 1 hour of simulated wind speeds. Each line of data file should contain the time in seconds and the corresponding wind speed. The time should start with 0 seconds. The increment in time should be 10 seconds and the final line of the data file should correspond to 3600 seconds. The user should be prompted to enter the average wind speed and the range of the gusts.
Explanation / Answer
This should work. Good luck and let me know if you need anything else. Link: - WindSpeed.cpp --> http://bit.ly/GVep7Q avgWindSpeed; cout > range; int min = avgWindSpeed - range; int length = 2 * range; ofstream output; output.open("wind.dat"); for(int i = 0; i