requirements4

requirements4 - of tellers. The derived bank class...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CSC 3390 Fall 2002 Assignment 4 Due 11.4.2002 Ms Moneypenny is pleased with the first version of the bank simulation software you wrote for her. As expected, she would now like you to implement a more sophisticated model. She would like now to experiment with varying numbers of tellers to arrive at an optimum compromise between average waiting times and the expense of employing extra tellers. This enhanced version reads in another external file (“tellers.dat”) to determine the number of tellers to use for the simulation. The format of the file is as follows: “tellers.dat”: 2 // num tellers Joe Brown // names of tellers John Doe Babe Ruth Bill Smith Create derived bank and customer classes, both having enhanced capabilities to deal with a multitude
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: of tellers. The derived bank class initializes a given number of tellers and creates instances of the new customer class. The derived customer class has the added ability to scan all tellers and pick the first available teller. Turn in: a) Source code for the entire program to be compiled in separate files: bank.cp, queue.cp, and classes.cp (for CClock, CPerson, CTeller, and CCustomer), and their respective header files. Show also the makefile for this project. [20%] b) Output for 2, 3, and 4 tellers. Use the same “in.dat” file for customers. [80%]...
View Full Document

This note was uploaded on 01/17/2012 for the course CSC 1254 taught by Professor Blanks,l during the Fall '08 term at LSU.

Ask a homework question - tutors are online