Flight Simulator wind speed. This set of problems relates to a computer simulation if 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. Use the function rand_float developed in this chapter which is :

double rand_float (double a, double b)
{
return ((double) rand() / RAND_MAX ) * (b - a) + a;
}

Write a program to generate a data file name wind.dat that contains one hour of simulated wind speed. 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.


I'm just working in a menu selection where the user will be able to
1 = Create a wind simulation
2 = other
3 = other
4 = other
5 = Quit


I have the file created called wind.dat.
The time from 0 seconds to 3600 seconds with an increment time of 10 seconds is done.
Could you guys help me out just letting me know what should I do next.
I'm not asking for code just hand example .
Thanks
This is what i have so far

Code:
#include <iostream>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <cmath>

using namespace std;

void Add();
void Delete();
void Edit();
void Find();

double rand_float(double a, double b);

int main()
{
  
  char selection;
  	

	do
  {
	
    system("cls");
  	cout << "MENU\n\n"
       	 << "1. Create wind speed simulation \n"
         << "2. Create wind speed with storms \n"
         << "3. Create wind speed with microbursts \n"
         << "4. View wind simulation \n"
         << "5. Quit\n\n"
         << "SELECTION: ";

  	//get menu selection
  	selection = cin.get();

  	//process selection
  	switch( selection)
  	{
  	  case '\n':		  break;
	 
	  case '1': Add();    break;
      case '2': Delete(); break;	  
	  case '3': Edit();   break;
      case '4': Find();   break;
      case '5':			  break;
      default: cout << '\a';
  	}

  }while( selection != '5' );

	return 0;
}//end main()

//function definitions
void Add()
{
	  system("cls");

	  const double HIGH_GUSTS(22);
	  const double LOW_GUSTS(-2);

	  int i = 0;
	  int Max_Seconds = 3600;
	  double Avg_Wind, num1;
	  
	  
	  ofstream wind;
	  wind.open("wind.dat");
  
	  cout << " |---- Dilmer Valecillos [CS1600-001] ----|" << endl;
	  cout << "\n\n  Enter the average of wind speed (mhp) : " ;
	  cin  >> Avg_Wind;

	  wind.setf(ios::fixed | ios::showpoint); // Set Formats in the file
      wind.precision(2);
	  
	  cout.setf(ios::fixed | ios::showpoint); // Set Formats to display on the screen
	  cout.precision(2);
	  
	  for (i = 0; i <= Max_Seconds; i++)
	  {

	   	//Avg_Wind = rand_float (22 ,-2);

	 	if ( ( i % 10 ) == 0 )
		{

		wind << setw(4) << i << "   " << Avg_Wind << endl; // Write data to a file wind.dat
		cout << setw(4) << i << "   " << Avg_Wind << endl; // Outputs the information to the screen
		
		}
	 
		
	  }


	  wind.close();
      system("pause");

}

void Delete()
{
    system("cls");

    system("pause");
}

void Edit()
{
	system("cls");
   
    system("pause");
}

void Find()
{
    system("cls");
  
    system("pause");
}

double rand_float (double a, double b)
{
	return ((double) rand() / RAND_MAX ) * (b - a) + a;
}