In this lab, modify the Museum simulation (from the Goldberg & Robson handout) to define another type of visitor a ConnVisitor . A ConnVisitor is an art conniseur, who spends at least 5 hours in the museum. In addition, ConnVisitors like to talk to people. So if there are more than 5 normal visitors in the museum, the ConnVisitors will grab one of then for atleast an hour and talk to them. Th e probability function and the number of visitors you have in your simulations are upto you. You will also need the simulation package.
To run the simulation provided, use the code below:
| aSimulation aFile |
aFile := (Filename named: 'museum.events') writeStream.
aSimulation := Museum new startUp.
[aSimulation time < 250] whileTrue: [aSimulation proceed].
aSimulation printStatisticsOn: aFile.
aFile close.
Mail your working simulation to fn9@prism.