Question: The Monty Hall problem is a famous problem in Mathematics. design a program to do the following: Ask the user for how many doors the

The Monty Hall problem is a famous problem in Mathematics.

design a program to do the following:

Ask the user for how many doors the game should start with.

Ask the user for how many games to play. Use a random number generater to play the game however many times the user wants to play. ACTUALLY simulate the game, do not just calculate what you think the answer should be. Display the number of games the user would win using the strategy of NOT swapping doors Display the number of games the user would win using the strategy OF swapping doors. Give a summary of the calculated probabilities of using each strategy.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!