31. Write a program to generate a data file named wind.dat t
31. Write a program to generate a data file named wind.dat that contains 1 hour of simulated wind speeds. Each line of the 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 should correspond to 3600 seconds. The user should be prompted to enter the average wind speed and the range of values of the gusts.32. In problem 31, assume that we want the flight simulator wind data to include a 0.5% possibility of encountering a small storm at each time step. Therefore, modify the solution to problem 31 so that the average wind speed is increase by 10 mph for a period of 5 minutes when a storm is encountered. The program should(1) set the precision to 4 decimal places,(2) apply srand() function,(3) use module to generate windspeeds.