Cash-back offer from May 2nd to 7th, 2024: Get a flat 10% cash-back credited to your account for a minimum transaction of $50.Post Your Questions Today!

Question DetailsNormal
$ 15.00

Data Structures - Airport exercise Solution

Question posted by
Online Tutor Profile
request

Write a program that simulates the operation of a busy airport that has only 2 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 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 a 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 outputs of your program should include the final queue contents, the number of landings and takeoffs completed, and the average number of minutes spent in each queue.

Use a uniform random number generator to determine if a request is a landing request or a take-off request. Seehttp://www.cplusplus.com/reference/clibrary/cstdlib/rand/ for information on the basic C++ random number generator function rand. You MAY use STL data structures in the work.

Extra credit ( 20 points )
Instead of scheduling requests at a fixed five-minute interval, use a random number to determine the interval between takeoff or landing requests. Use an exponential random number for the interval. Show how the performance between this model and the base model differ.
 

Available Answer
$ 15.00

[Solved] Data Structures - Airport exercise Solution

  • This Solution has been Purchased 4 time
  • Submitted On 21 Dec, 2014 09:01:12
Answer posted by
Online Tutor Profile
solution

This Tutorial is rated A+ p...

Buy now to view the complete solution
Other Similar Questions
User Profile
NUMBE...

Test Bank Data Structures and Abstractions with Java, 5th Edition Frank M. Carrano A+

Description True/False (10) An abstract data type is not necessarily a collection. Answer: true A collection is not necessarily an abstract data type. Answer: false Entries of a bag can belong to classes related b...
User Profile
termp...

week4_DAT305.docx DAT/305: Data Structures For Problem Solving April 20th, 2020 1.18 <

Week4_DAT305.docx DAT/305: Data Structures For Problem Solving April 20th, 2020 1.18 < 20, so current node becomes 12. 18 > 12, and 12 has no right child, so 12's right child is assigned with the new node 18. 2.11 < 20, s...
User Profile
Acade...

DSAA204 Data Structure and Algorithms

Unit Learning Outcomes addressed: a) Evaluate the efficiency and effectiveness of data structures and algorithms; b) Demonstrate reasoning about efficiency of algorithms; c) Assess and apply suitable recursive data structu...
User Profile
Acade...

CSE205 Object Oriented Programming and Data Structures Homework 4 :

1 Submission Instructions Create a document using your favorite word processor and type your exercise solutions. At the top of the document be sure to include your name and the homework assignment number, e.g. HW4. Convert th...
User Profile
NUMBE...

Data Structures Project Help Needed

As per the problem, write a program to compute the determinant of a matrix. ( If you refer to a Linear Algebra text, you may find the minors are called co-factors.) It should read a matrix, print it out, compute and print the...

The benefits of buying study notes from CourseMerits

homeworkhelptime
Assurance Of Timely Delivery
We value your patience, and to ensure you always receive your homework help within the promised time, our dedicated team of tutors begins their work as soon as the request arrives.
tutoring
Best Price In The Market
All the services that are available on our page cost only a nominal amount of money. In fact, the prices are lower than the industry standards. You can always expect value for money from us.
tutorsupport
Uninterrupted 24/7 Support
Our customer support wing remains online 24x7 to provide you seamless assistance. Also, when you post a query or a request here, you can expect an immediate response from our side.
closebutton

$ 629.35