CS 112 - Lab 4
Questions


Name: _________________________ Login: ____________________
Friday Lab Section (check one): [ ] 8:00am-11:00am

[ ] 11:10pm-2:10pm

Provide answers (on this sheet) to the questions below, and hand them to the TAs at the beginning of Lab 5 on Friday, February 28.

    
    
  1. What does function time( ) return?
    
    
    
  2. Why does the program produce different output with the same input data?
    
    
    
  3. Explain why the airport simulation program complains if the sum of expected number of arrivals per unit time and expected number of departures per unit time is greater than 1?
    
    
    
  4. If you decrease the expected number of arrivals and increase the expected number of departures but keep the total number the same, do you expect the percentage of time the runway is idle to increase, decrease, or stay the same? Explain.