Problem

Flight-Simulator Wind Speed. This set of problems relates to a computer simulation of wind...

Flight-Simulator Wind 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 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 (that represents gusts) that range from -2 miles per hour to 2 miles per hour, as shown in Figure. Use the function rand_float 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.

Problem

Flight-Simulator Wind 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 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 (that represents gusts) that range from -2 miles per hour to 2 miles per hour, as shown in Figure. Use the function rand_float developed in this chapter.

Figure Simulated wind speed.

Redo Problem, 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 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.

Flight-Simulator Wind 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 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 (that represents gusts) that range from -2 miles per hour to 2 miles per hour, as shown in Figure. Use the function rand_float developed in this chapter.

Figure Simulated wind speed.

Write a program to generate a data file named wind 1.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 3600 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
Solutions For Problems in Chapter 4