C++ Programming Assignment
Due Tuesday, Febryary 18, 2003
Modify the basic mm1 queuing system program to model the system
described in problem 1.26 on page 103 of the text.
A few requirements and reminders:
- Make all of the
parameters for the random components of the system input into the
program rather than hardcoded (for example, the range of service
times for type 2 customers).
- Be sure to have your program compute and print all of the performance
measures requested. Be sure to test your program to make sure those
numbers are reasonable.
- Update the documentation. Be sure your name is in the documentation
and a description of the system you are modeling. Each function (method)
should have documentation describing what that function does.
- Use appropriate identifiers in the program (in other words, don't
just use the ones I used in the mm1 system if they don't make sense
in this context). One thing you should do (and will be penalized if
you don't) is rename the main class from mm1System to something
more appropriate. This is quite easy using replace in emacs.
You may want to try this out on the tandem program you did in lab -- the
following instructions show you how to replace all instances of
mm1System with TandemSystem. Adapt them for your
program.
- Go to the top of the file then choose edit, search,
replace from the menu.
- In the
status bar at the bottom of the emacs window you will see "Query replace: "
followed by the cursor.
- Type in mm1System and press ENTER.
- You will then see "Replace mm1System with: " -- type in TandemSystem
and press ENTER.
- emacs will then find and highlight instances of mm1System. Press y
to have each replaced (or n if you don't want one replaced).
- HAND IN: printouts of the files that you made changes to
(this should not be many -- mainly your replacement for mm1.cc and
System.h). Tar your directory and email it to me at
ingram@cs.roanoke.edu