This preview shows page 1. Sign up to view the full content.
Unformatted text preview: 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. See http://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....
View Full Document
This note was uploaded on 01/23/2011 for the course CMPSC 122 at Pennsylvania State University, University Park.