This must be written in your own words. Copying an explanation from a web page is plagiarism and will be treated as such. Please cite the web sites that you used when revising your hypothesis. Pick a curtain to hide the prize behind 2. Randomly pick a curtain for the contestant 3.
Count wins if the contestant stays with their original curtain.
Count wins if the contestant switches curtains. Repeat 1 - 4 a sufficient number of times. Calculate percentage of wins when switching and when not switching. To perform this simulation you will need to write a method that can pick a random number between 1 and 3, representing a curtain. If you think about it correctly you will not need to write any code to simulate switching curtains or zonkers.