En cours

Queue Program

Suppose that Middlesex County College Airport has one runway, which each airplane takes landingTime minutes to land and takeOffTime minutes to take off, and that on the average, takeOffRate planes take off and landingRate planes land each hour.

Assume that the planes arrive at random instants of time. Delays make the assumption of randomness quite reasonable.

There are 2 types of queues: a queue of airplanes waiting to land AND

a queue of airplanes waiting to take off.

Since it is more expensive to keep a plane airborne than to have one waiting on the ground, we assume that the airplanes in the landing queue have priority over those in the takeoff queue.

Write a Java program to simulate MCC Airport’s operation. You might assume a simulated clock that advances in one-minute intervals. For each minute, generate 2 random numbers: If the first is less than landingRate/60, a “landing arrival” has occurred and is added to the landing queue; and if the second is less than takeOffRate/60, a “takeoff arrival” has occurred and is added to the takeoff queue.

Next, check whether the runway is free. If it is free, first check whether the landing queue is nonempty, and if so, allow the first airplane to land; otherwise, consider the takeoff queue.

Have the program calculate the average queue length and the average time that an airplane spends in a queue. You should also consider the effect of varying arrival and departure rates to simulate the prime and slack times of day, or what happens if the amount of time to land or take off is increased or decreased.

Compétences : Programmation C, Programmation C++, Java, Javascript, Architecture Logicielle

en voir plus : small queue program, set queue length tun0 operation permitted errno1, openvpn set queue length tun0 operation permitted errno1, queue program, java customer queue program, simple queue program, java simulation queue program, program auto post forum random intervals, display queue program, display simple queue program, queue program trixbox, write program bitwise operations generate display poweroftwo numbers, write program simulate operation page replacement algorithm, taxi rank queue program, multilevel feedback queue program, program matrices operation, taxi rank linked list queue program

Concernant l'employeur :
( 1 commentaire ) South Plainfield, United States

Nº du projet : #19959814

Décerné à:


⭐Dear Sir⭐ Nice to meet you. I am interesting in your project. I can build your project perfectly with my experience. I am full time developer and my goal was always delivery perfectly results on time I will do m Plus

%selectedBids___i_sum_sub_4% %project_currencyDetails_sign_sub_5% USD en 1 jour
(78 Commentaires)

12 freelance font une offre moyenne de $28 pour ce travail


Hi, I've read your job description and I believe I will make good fit for this position. Hope to discuss further about this position. Best Regards Dan

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(13 Commentaires)

hello,how are you. i read your bid carefully. i am c/c++ expert and have full experience for 10 years. c++ language is my top skill. i can provide most quality and high speed. if you want to success, please contact Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(13 Commentaires)

Data structure, Java, C expert. I can show you my projects via chatting. I have many experiences. I can complete your project successfully. I'm software engineer and algorithm expert. I'm fullstack website developer an Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(51 Commentaires)

Hi, sir. I'm very glad to bid on your project. I have experienced with Android and C++ many years and have done so many projects. If you hire me, I'll do my best to help you. Thanks.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(30 Commentaires)

Hi, hope you are doing well I read your job posting carefully and am very interest in your project. I am a full stack developer with great experience and skills. I've always been giving clients satisfaction with the Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(22 Commentaires)

hello, I'm an experienced java developer, worked with algorithms and data structures a lot, lets talk about your task

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(38 Commentaires)

Dear client Honorable Senior I am happy to apply in your project. Your project is interesting to me. I have good skills Avin H.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(23 Commentaires)

Hi, I like to do c progrmming as it uses more complex functions. Although this language is complex, it is interesting! I'm very interesting in your project and my result will satisty you. I think we can chat for de Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(9 Commentaires)

Hi, Greetings of the Day! I have 6 years of experience in PHP. Thanks for sharing your requirement and I will be more happy to assist you in this. Given a chance for an interview, I will be happy to discuss in detail Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(5 Commentaires)

I am working for a company right now I have 2+ experience in web developing and currently working on the website

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)

Hello there! My name is Chris, I'm a UK based and native English speaking web developer and app expert with 10 years experience building and maintaining complex web apps and websites. I've built and maintained applica Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)