Code | Marks Deducted | Explanation |
V1 | 3 | Variables for calculating statistics declared in wrong place. |
A1 | 3 | Next accident scheduled when first is over. |
A2 | 1 | Has drand48()*(allPlatforms.size()-1)
or drand48()*(allPlatforms.size()+1) to compute uniform distribution. |
A4 | 2 | Loops until unoccupied platform found. This is wrong because it could loop forever. |
A5 | 3 | Schedules EndAccident without being sure that Accident will happen. |
A6 | 1 | Makes three accident events. |
SM1 | 4 | Computes interval when passenger is scheduled. |
SM2 | 4 | Error in sum of interarrival times. |
SI1 | 2 | Array not initialized in Statistics. |
SC1 | 2 | Statistics gathered even when passenger not scheduled. |
PA1 | 2 | Error in formula for passenger scheduling. |
V1 | 3 | Variables for statistics in Station class. |
PP1 | 2 | Changed private members from other classes to public. |
H1 | 1 | Calculation by hand used simulation time. |