Problem

Flight SimulatorWind Speed. This set of problems relates to a computer simulation of wind...

Flight SimulatorWind Speed. This set of problems relates to a computer simulation of wind speed for a flight simulator. Assume that the wind speed for a particular region can be modeled by using an average value and a range of gust values that is added to the average. For example, the wind speed might be 10 miles an hour, with added noise (which represents gusts) that ranges from 22 miles per hour to 2 miles per hour, as shown in Figure Use the function randfloat developed in this chapter.

Figure Simulated wind speed.

Modify the program in problem so that the user enters the length in minutes for the duration of a storm.

In problem, 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 so that the average wind speed is increased by 10 mph for a period of 5 minutes when a storm is encountered. A plot of an example data file with three storms is shown in Figure.

Figure Simulated wind speeds with three storms.

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 file should correspond to 3,600 seconds. The user should be prompted to enter the average wind speed and the range of values of the gusts.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT