Question: Write a Java program to test the Monty Hall program. Have the program simulate a door switch 10,000 times and have the program simulate a
Write a Java program to test the Monty Hall program. Have the program simulate a door switch 10,000 times and have the program simulate a door stay 10,000 times. You may write the program using any method or classes you prefer. Your output from your program should contain something similar to the following: Choice: Win Percentage Lose Percentage Switch 6632 66.32% 3368 33.68% Stay 3330 33.30% 6670 66.70%
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
