Looping Program 1 -- A simulation

Problem:

In a certain game of chance, a player rolls two six-sided dice.  The sum of these two dice can be 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, or 12.  A sum of 7 or 11 on the first roll causes the player to win.  A sum of 2, 3, or 12 on the first roll causes the player to lose.  A sum of anything else (i.e. 4, 5, 6, 8, 9, 10) on the first roll causes this value to become known as the “point”.  The player then rolls the two-dice repeatedly until a roll with a sum of 7 occurs (in which case the player loses) or a roll with a sum equal to the “point” occurs (in which case the player wins).

For example:

 Sum of first roll = 7.    Player wins.

 Sum of first roll = 10.    10 is the “point”.
 Sum of next roll = 2.
 Sum of next roll = 7.    Player loses.

 Sum of first roll = 3.    Player loses.

 Sum of first roll = 6.    6 is the “point”.
 Sum of next roll = 6.    Player wins.

Write a program in JAVA that simulates the above game, and asks the player after each game if they would like to play again.

For Example:

 Input: 7     Output: Player wins.
 Input: 10, 2, 7    Output: Player loses.
 Input: 3     Output: Player loses.
 Input: 6, 6     Output: Player wins.

Sample Program Run:

Upon running the program, you should see the following...  Note: user inputs are between angle brackets <>.

Sample:

You rolled a 7
You win.

Would you like to play again? (Y/N)
<Y>

You rolled a 10
You rolled a 2
You rolled a 7
You lose.

Would you like to play again? (Y/N)
<Y>

You rolled a 3
You lose.

Would you like to play again? (Y/N)
<Y>

You rolled a 6
You rolled a 6
You win.

Would you like to play again? (Y/N)
<N>