Question: C++ please leave comments For this program you will simulate the landing of airplanes on an airport runway. You will represent the airplane as: class

C++ please leave comments
 C++ please leave comments For this program you will simulate the
landing of airplanes on an airport runway. You will represent the airplane
as: class Airplane public: string Name; int ArrivalTime int ApproachAndLandDelay; Airplane(string Aname,
int AnApproachDelay, int Atime Name(Aname), ApproachDelay(AnApproachDelay), ArrivalTime(Atime) Using rand() from csdlib, which
you will include as #include esdib>. You will generate random numbers to

For this program you will simulate the landing of airplanes on an airport runway. You will represent the airplane as: class Airplane public: string Name; int ArrivalTime int ApproachAndLandDelay; Airplane(string Aname, int AnApproachDelay, int Atime Name(Aname), ApproachDelay(AnApproachDelay), ArrivalTime(Atime) Using rand() from csdlib, which you will include as #include esdib>. You will generate random numbers to simulate the arrival time of each airplane at the airport. This can be coded as: arriva!Time rand() % 35. This statement will produce a (reproducible) arrival time in the range of 0 to 34 time units. After airplanes arrive ar the airport, they may have varying landing delays due to weather conditions or level of pilot experience. For each airplane this can be coded as: approach Delay (rand () % 2)-1. This statement will produce a landing delay time in the range of1 to 2 time units. Airplanes are numbered starting at 01, so names are: Airplane01, Airplane01, etc. You will benefit by doing this with C++ string objects, which require #include The function genAirplane0 will return a reference to an Airplane object and will calculate ArrivalTime, approachDelay and name the airplane. It will have a return statement: return *(new Airplane(airplaneName, approachDelay, ArrivalTime))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!