472,986 Members | 3,017 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,986 software developers and data experts.

Could anyone do this program "Urgent" Please

This problem is to simulate an airport landing and takeoff pattern. The
airport has 3 runways, runway 1, runway 2 and runway 3. There are 4
landing holding patterns, two for each of the first two runways. Arriving
planes will enter one of the holding pattern queues, where the queues are
to be as close in size as possible. When a plane enters a holding queue, it
is assigned an integer ID number and an integer giving the number of time
units the plane can remain in the queue before it must land (because of low
fuel level). There is also a queue for takeoffs for each of the three
runways. Planes arriving in a takeoff queue are also assigned an integer ID.
The takeoff queues should be kept the same size.

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

Use successive even(odd) integers for ID's of planes arriving at takeoff
(landing) queues. At each time unit assume that arriving planes are entered
into queues before takeoffs or landings occur. Try to design your algorithm
so that neither landing nor takeoff queues grow excessively. However,
arriving planes must be placed at the ends of queues. Queues cannot be

The output should clearly indicate what occurs at each time unit.
Periodically print (a) the contents of each queue; (b) the average takeoff
waiting time; (c) the average landing waiting time; (d) the average flying
time remaining on landing; and (e) the number of planes landing with no fuel
reserve. (b)-(c) are for planes that have taken off or landed respectively.
The output should be self explanatory and easy to understand(and uncluttered).

The input should be in a file generated by using random number generator.
For each time unit the input is of the form:
<# of planes arriving at takeoff queues(0-3)><# of planes arriving at landing
queues(0-3)><units of flying time (1-20) for planes arriving in landing queues>*

Number of planes arriving at landing and takeoff queues is an integer between
0 to 3. Units of flying time is an integer between 1 and 20 and there are
as many numbers as the number of planes arriving in landing queues.


. Use only Linux and gcc.
Aug 26 '06 #1
0 1754

Sign in to post your reply or Sign up for a free account.

Similar topics

by: MR | last post by:
Hi, it has been observed that when we try to instantiate a .Net dll for the first time in a session (e.g. from an exe in .Net), it takes almost 10 times compared to subsequent instantiations. ...
by: Saps | last post by:
Hi all. Can anyone help me here. I have loads of .sql files and i need a way to call these from my asp page so the user can run them from the browser. Meaning i have a page with a list of all...
by: onkar | last post by:
I am usin ctags to find links in a very complex program spread over multiple files.I find it very difficult to return to original file. can anyone please help me.. I tried google but i found...
by: jithinjp | last post by:
hi, i got to submit this program for my assignment in around 24 hours.The program goes like this first i give a user a clue to an answer,if he fails to answer then another clue and if he fails...
by: settyv | last post by:
Hi, I need to generate PDF stream when i click on Linkbutton in datagrid ..At present i hardcoded the DMS Id and now it is working.But i need to pass DMS ID when click linkbutton.How can i do...
by: ranishobha21 | last post by:
Hi, i have a client server program in VC++,i want to provide this client - server application on web.which program i should use whether PHP or i can convert VC++ to active X control and then...
by: asimzia | last post by:
Hi there , I have used app.path in VB6.0 and it gives me exact location of my VB Application that is on client pc normally it is C:\Program Files\ProductName and on my PC it is C:\Development\VB. ...
by: Balamurugan Ranganathan | last post by:
I want to calculate the execution time of a sql query through C#.net this is to analysis two queries to compare their execution time it is very Urgent Please help me Please help Me ...
by: jenipriya | last post by:
Hi all... its very urgent.. please........i m a beginner in oracle.... Anyone please help me wit dese codes i hv tried... and correct the errors... The table structures i hav Employee (EmpID,...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.