Write a program to generate a data file named wi ndl


1. Write a program to generate a data file named wi ndl. dat that contains I hour of simu-lated 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 file should correspond to 3600 sec-onds. The user should be prompted to enter the average wind speed and the range of val-ues of the gusts.

2. Redo Problem 20, but 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 20 so that the average wind speed is increased by 10 mph for a peri-od of 5 minutes when a storm is encountered. A plot of an example data file with three storms is shown in Figure 4.18.

3. Redo Problem 21, but assume that there is a 1% possibility of encountering a microburst at each time step in a small storm. Therefore, modify the solution to Problem 21 so that

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Write a program to generate a data file named wi ndl
Reference No:- TGS01132476

Now Priced at $15 (50% Discount)

Recommended (94%)

Rated (4.6/5)