I gang

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.

Evner: C programmering, C++ Programmering, Java, Javascript, Software Arkitektur

Se mere: 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

Om arbejdsgiveren:
( 1 bedømmelse ) South Plainfield, United States

Projekt ID: #19959814

Tildelt til:

jinxing4

⭐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 Flere

$50 USD på 1 dag
(78 bedømmelser)
5.8

12 freelancere byder i gennemsnit $28 på dette job

osipeuschenko

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

$25 USD på 1 dag
(13 bedømmelser)
6.3
Victorier006

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 Flere

$30 USD på 1 dag
(13 bedømmelser)
5.3
xinglong717

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 Flere

$20 USD in 7 dage
(51 bedømmelser)
5.6
KimHyokJun

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.

$30 USD på 1 dag
(30 bedømmelser)
5.1
BestService222

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 Flere

$50 USD på 1 dag
(22 bedømmelser)
5.1
jboo7

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

$25 USD på 1 dag
(38 bedømmelser)
4.6
HaryCoders

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

$10 USD in 0 dage
(23 bedømmelser)
4.3
Panggumsok

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 Flere

$25 USD på 1 dag
(9 bedømmelser)
4.4
mkdara

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 Flere

$20 USD in 7 dage
(5 bedømmelser)
2.6
hk967144

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

$25 USD på 1 dag
(0 bedømmelser)
0.0
theukwebexpert

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 Flere

$30 USD på 1 dag
(0 bedømmelser)
0.0