This program was a pop quiz from my apprenticeship.  The instructions were to make a dice-rolling program which starts with a "bankroll" of $100, where each roll of a pair of six-sided dice costs $1, and each roll of 7 earns $4, and print out the number of rolls until the bankroll reaches 0.