Recently, I saw somebody start a "Deal or No Deal" game in the Posting Games section. This got me thinking of writing a program to actually play the game based on the rules of the show. So I spent a couple of hours writing this in ANSI-C. I probably should have commented it more, but I did not use any wild in-code optimizations. Depending on your compiler/linker, you may have to include the math library during linking. This has been tested to work on gcc 4.6.3 on Ubuntu 12.04 and MS-Visual Studio 2008.
On Ubuntu: cc -O3 -ansi dond.c -lm -o dond
In MSVS: Create a new C console application. Add the file dond.c. Compile and run.
Have fun.
Please add any comments about this code and I will try to answer promptly.