# In the name of Allah most marciful and banificient

Group members: Waseem sajjad Abdul wahhab Department of Electronics .

Airport Simulation .

where the queues are to be as close to the same size as possible. and runway 3. runway1. runway 2. The airport has 3 runways.This problem is to simulate an airport landing and takeoff pattern. Arriving planes will enter one of the holding pattern queues. . There are 4 landing holding patterns. two for each of the first two runways.

Planes arriving at an output queue are also assigned an integer id. it is given an integer id and an integer representing the number of time units that the plane can remain in the queue before it must land (because of low fuel level). .When a plane enters a holding queue. There is also a queue of takeoffs for each of the three runways.

At each time unit. Runway 3 is to be used for takeoffs. planes in any landing queue whose remaining air time (fuel level) has reached 0 must be given priority over other takeoffs and landings. Runway 3 is to be used. . If more than one. Each arriving plane has from 0 to 20 time untis of fuel remaining. Each runway can handle one takeoff or landing at each time slot. 0-3 planes may arrive at the landing queue and 0-3 planes may arrive at the takeoff queues.At each time. except when a plane is low on fuel. then the other runways are also used (at each time at most 3 planes can be handled in this way). If one one plane is in this category.

At each time unit assume that arriving planes are entered into queues before takeoff or landing occur. However arriving planes must be placed at the end of queues.Use successive even (odd) numbers for id's of planes arriving at takeoff (landing) queues. . Try to design your algorithm so that neither takeoff or landing queues grow excessively.

(c) the average landing waiting time. . Periodically output (a) then contents of each queue. (b) and (c) are for planes that have taken off and landed respectively. (d) the average flying time remaining on landing. (b) the average takeoff waiting time. and (e) the number of planes landing with no fuel reserve. Use a random number generator to generate the inputs.The output should clearly indicate what occurs at each time unit.

• • • • • • • • ((((((((((((((((((((((( ))))))))))))))))))))))))))))))))))) ((((((((((((((((((((( NeW Time ))))))))))))))))))))))))))))))))) ((((((((((((((((((( ))))))))))))))))))))))))))))))))))) The unit time: 66 The number of plane crashed : 15 The number of plane Landed : 35 The number of plane takeoff : 0 -----------------------------.Landing Queue -----------------------------• The number of arriving planes are . 2 • The is insersted 1259 • The is insersted 1261 ....

2 The is insersted 1259 The is insersted 1261 Runway .Arrival Time --...• • • • • • • • • • • • ((((((((((((((((((((( NeW Time ))))))))))))))))))))))))))))))))) ((((((((((((((((((( ))))))))))))))))))))))))))))))))))) The unit time: 66 The number of plane crashed : 15 The number of plane Landed : 35 The number of plane takeoff : 0 -----------------------------.1 -.Landing Queue -----------------------------The number of arriving planes are ..Fuel --.62 --.67 .Landing Time unit 1 1255 --.Plane ID --.

TakeoffTime unit 11 1258 --.Fuel --.69 -----------------------------------------------------------------------------The Plane ID is Landed 1255 The Plane ID is Landed 1253 The Plane ID is Landed 1257 The plane ID is crashed: 1260 .68 2 1261 --.63 --.61 --..56 -.Arrival Time --.64 --.66 2 1257 --..4 -.67 --.Take Off ------------------------------The Number of New Planes for Takeoff Queue .71 2 1253 --.Plane ID --..22 -.66 --.26 -.50 -..69 11 1260 --...64 --. 0 Runway .72 ----------------------------------------------------------------------------------------------------------.55 -.• • • • • • • • • • • • • • • 1 1259 --.

Thank you .

Sign up to vote on this title