![jjace0016](/avatars/4136.jpg)
jjace0016
24.03.2020 •
Computers and Technology
2- Write a program that simulates the operation of a busy airport that has only two runways to handle all takeoffs and landings. You may assume that each takeoff or landing takes 15 minutes to complete. One runway request is made during each five-minute time interval, and the likelihood of a landing request is the same as for a takeoff request. Priority is given to planes requesting a landing. If a request cannot be honored, it is added to a takeoff or landing queue. Your program should simulate 120 minutes of activity at the airport. Each request for runway clearance should be time-stamped and added to the appropriate queue. The output from your program should include the final queue contents, the number of takeoffs completed, the number of landings completed, and the average number of minutes spent in each queue.
Solved
Show answers
More tips
- S Science and Technology Why is there no gravity on other planets?...
- F Food and Cooking Deflope: What is it and how does it work?...
- B Business and Finance How to Create a Business Plan? Your Ultimate Guide...
- F Food and Cooking Unusually Delicious Shashlik - Follow the Etiquette of Proper Preparation!...
- C Computers and Internet Make Easy Accessible Screenshots on iPad in Just a Few Minutes...
- T Travel and tourism Lost in the Catacombs: What to Do?...
- F Family and Home Protect Your Home or Apartment from Pesky Ants...
- H Health and Medicine How to Treat Styes: Causes, Symptoms, and Home Remedies...
- L Legal consultation What Documents Are Required for a Russian Passport?...
- F Family and Home How to Properly Use a Water Level?...
Answers on questions: Computers and Technology
- M Mathematics The perimeter of the iscosceles triangle with base length y-14...
- M Mathematics To start, you have $63.75. You earn additional money babysitting. Then you purchase a new pair of shoes for $109.99. You now have $83.76. left. How much money do you earn babysitting?...
- H History In 1987, reagan and gorbachev signed an agreement that created a body of officials to discuss conflicts between their nations. eliminated medium-range nuclear weapons in europe....
- B Biology Move each feature to to the appropriate category based on the process that causes its formation. beach Erosion by Waves Deposition by Waves sea arch sandbar barrier island sea...
- S Social Studies Cuantos países ay en todo el mundo?...
Ответ: