CSci 405: Computer Simulation
Spring Semester 2000

Assignment #2
Due Wednesday, 29 March, 11:00 A.M. (Revised)


Prepare this assignment by the above deadline in accordance with the instructions given in the Professional Conduct and Assignments sections of the Syllabus .

You may work individually or in groups of two persons. (Both individuals in a group should be familiar with all aspects of the model and implementation code and be able to explain it to the instructor.)

In this assignment you are asked to develop a simulation model and program using Java and the JavaSim simulation package. The JavaSim package is available on the course's Web pages, is installed on system john, and will be made available on the Adler lab systems soon.

Develop a simulation model of a facility such as the Adler computer laboratory in the department. The facility has the following characteristics:

Do the following experiments, letting arrMean = 10 minutes, useMean = 90 minutes, waitProb be two-thirds, and openPeriod = 16 hours in your model,

  1. Assume that nComp is unbounded. How many students arrived? How many were served? What is the average number of computers needed in the lab? What is the maximum number of computers needed in the lab at any one time during the simulation? (You may want to instrument your program to collect other useful information.)
  2. Repeat the experiment in (1), except set nComp to the average number of computers in use during the simulation (rounded up to the nearest integer). Now, what percentage of students cannot get access to a computer on their first try without waiting? What percentage of the students leave without getting use of a computer on their first try?
  3. Repeat the experiment in (1), but this time increase nComp by one from what you used in (2). Answer the same questions as in (2).
  4. Repeat the experiment in (a), but this time increase nComp by two from what you used in (2). Answer the same questions as in (2)

Interesting enhancements:

When this assignment is complete, submit:

Be sure that all items submitted are clearly labeled with your name, class, and the assignment number.


UP to CSCI 405 assignments document?


Copyright © 2000, H. Conrad Cunningham
Last modified: Tue Apr 4 20:01:57 2000