C++ Computer Simulation Program