Read chapter 9.Modify the slot program from the book with the following changes:1. Add in the stats group box: one is called (this is the amount of dollars the user
Read chapter 9.Modify the slot program from the book with the following changes:1. Add in the stats group box: one is called (this is the amount of dollars the user wants to bet on each game, amount cannot be more than the balance); the other is called (this is the amount of money won by the user on each game, use a negative amount when it’s a loss).2. Ask user how much money to start with instead of using Account =20 on the program. This will be the .3. – When user loses (i.e. 3 different pictures displayed), – When user wins 2 (i.e. 2 same pictures displayed), – When user wins 3 (i.e. jackpot), Remember the Account value window keeps track of the user balance after each game.4. Add also the following: The user Wins and game is over also when the WIN is than the value in the Account before that particular game. (For instance, let’s say user balance is and user wins or more in that game by placing a bet of 12 or more and wins the jackpot 12×5 = 60). Display a to show how many games it takes the user to win amount, display amount together with the user Account balance. ___________________________________________________________________________________________________________________________________________ You are required to make at least
Leave a Reply
Want to join the discussion?Feel free to contribute!