Dice games are almost as old as history itself. Oddly enough, a dice game is the best game at the Casino, if you want to win, that is. Specifically, the game of Craps.
The rules for Craps are a little weird, but still simple. You use two six-sided dice to play. On the first roll, a 2, a 3, or a 12 is an automatic loss, and a 7 or 11 is an automatic win. Any other result becomes the "point" value. If you don't win on the first roll, you keep rolling until you roll your "point" again, in which case you win, or you roll 7, in which case you lose (after the first roll, the 2, 3, 11, and 12 don't count for anything). In Vegas, there's a short break between each roll to let people bet.
Create an application that plays Craps. It should have:
HINTS: You might want to use a global variable to keep track of whether or not it's a first roll (maybe a Boolean?), and another one (like an Integer) for the point value. This one can be complex, but if you break it down using decomposition and pseudocode, it'll be easy. That's worth repeating: start in your notebook with pseudocode. Once again, write some pseudocode first. One of you is going to complain about how hard this lab is, and I'm going to ask you for your pseudocode, and you're going to say that you didn't do it, and I'll point out that I said that you should; don't be that guy.
As always, design a useful and proper interface. By this time, I expect you can design a decent interface that isn't ugly or wasteful of real estate.