This project is implemented as a simple command line utility, written in Rust, verified to only depend upon kernel32.dll and advapi32.dll (for random numbers).
When you launch the program, it will display a menu of all of the assignment programs that were implemented. Type a number from 1-4 corresponding to the assignment part and press enter to utilize that part of the program.
Simply enter the number of coupon types and it will run 100 trials and tell you the results. This could take a very long time if you type a large number.
You will play the classic monty hall game. To begin, pick your door by typing 1, 2, or 3 and pressing enter. Then, the host will reveal one of the other two doors that contains a goat, and will ask you again to select a new door. The Host will then reveal what you have won, and will show you what was behind each door.
In this mode the computer will play an extended version of Monty Hall against itself 100 times. Simply enter the numbers for doors, cars, and reveals. Then it will run 1000 trials of the game and show you the results. Just like in the coupon problem, this could take a very long time if you enter large numbers (> 1000).
Simply enter the $a
, $b
, and p
values and the computer will run
the simulation and show you the results.