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.
⭐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
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
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
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
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.
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
hello, I'm an experienced java developer, worked with algorithms and data structures a lot, lets talk about your task
Dear client Honorable Senior I am happy to apply in your project. Your project is interesting to me. I have good skills Avin H.
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
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
I am working for a company right now I have 2+ experience in web developing and currently working on the website
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