Question: Write a program using your preferred programming language that simulates rollinga 12-sided die a varying number of times. The program should perform the followingsteps: Roll
Write a program using your preferred programming language that simulates rollinga 12-sided die a varying number of times. The program should perform the followingsteps:
Roll the die 100, 1000, 10,000, 100,000 times.
Calculate the average value of the results for each set of rolls.
Compare the calculated averages with the expected value (Find the expected valueby hand).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
