DiceSimulationDriver Pseudocode: Dice Simulation Driver Algorithm CREATE DiceSim
ID: 3759852 • Letter: D
Question
DiceSimulationDriver Pseudocode: Dice Simulation Driver Algorithm CREATE DiceSimulator objects SET numberSimulationRolls to 10000 DiceAccumulator object = runSimulation(numberSimulationRolls) PRINT output report END MAIN 4 Output Prints the report at the end of the simulation showing how many doubles of each number are rolled. These statements can either be done in the driver or in a DiceOutput class with a printReport method. Sample output – NOTE: the actual values for each number will not be exactly the same each time the program is run, but they will be similar. Number of rolls: 10000 Number snake eyes: 278 Number twos: 280 Number threes: 285 Number fours: 292 Number fives: 257 Number sixes: 261
Explanation / Answer
Dice Simulation Driver Algorithm
CREATE DiceSimulator objects
SET numberSimulationRolls to 10000
DiceAccumulator object =
runSimulation(numberSimulationRolls)
PRINT output report
END MAIN
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.