Question: write a c++ Monty Hall Problem out od the 3 doors there is one prize in it. current user will input a selection of the

write a c++ Monty Hall Problem out od the 3 doors there is one prize in it. current user will input a selection of the 3 doors. the p[rogram will reveal that one of the other two doors is a loss. the program will ask the user to input whether or not they want to switch their answer or keep the original answer. after the user input if they want to switch or not, the program will then tells them if they lost or win.

According to the actual problem, the odds of winning are 2/3 if the user switches, but only 1/3 if they do not switch their answer. need to show that these statistics hold true.

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!