applet 2

  1. Compile  the file Craps.java
  2. Create the file craps.html to the same directory and test with your browser.
  3. Modify the craps program to allow wagers. Initialize a class variable bankBalance to 1000 dollars and prompt the user to enter a wager. Check that the wager is less than or equal to bankBalance and if not have the user reenter the wager until a valid amount is entered. After a correct wager is entered, let the user play a game of craps. Increase or decrease the bankBalance by wager, as the case may be, and print the new bankBalance. When bankBalance becomes zero, print the message "Sorry, you are busted!".