Question: We want to write a script performing the following experiment: You roll a six-sided dice. You win $3 if you roll 3 or more, and

We want to write a script performing the following experiment: "You roll a six-sided dice. You win $3 if you roll 3 or more, and you lose $6 if your roll 2 or less." Our goal is to perform the experiment and calculate the average winning per roll. 1 Script Write a script which will perform the above experiment and generate the following plot: 1. Number of rolls on the x-axis (should start at 1, end at 1000, with an increment of 10). 2. Average winnings on the y-axis 3. The x and y axis of the plot should be appropriately labelled 2 Rules 1. You are only allowed to use the following modules: numpy matplotlib.pyplot 2. You can use internet searches only to debug errors and to look at documents of the above modules
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
