Question: Create an application for slot machine game. Players are allowed to play as many games as they want although they must enter the number of

Create an application for slot machine game. Players are allowed to play as many games as they want although they must enter the number of games to play when they begin. Prizes are awarded based upon the number of wins the player has. You will need to accumulate wins then determine the number of chances to win a prize then roll to win a prize. (explained below!) This program will involve several Loops... use both WHILE DO and FOR loops in your design. Input includes both the selection of a Player name up a combo box with at least 8 player names; 1 per line Number of games to play for the selected player. Validate these appropriately. Play, Prize totals, Add Player, Remove Player, New Player, Save Data/Clear List box, Player report, Ext When selected: It represents 1 game -allow it to be clicked one time per game played for a player (input # games) 3 random values should be created and assigned to variables Display the 3 values (you can use letters, numbers, pictures) as with a game Determine the points won based on the following... All 3 random values match 100 points Any 2 random values match 50 points Accumulate the number of points the player earns for the number games they play (based on input #games). Count the number of games and stop play when the input number of names has been played. At the end of the player's turn (when the number of games is over) Determine the prize won in the following manner Determine the number of turns to win a prize in the following manner.... Find the average points based on number of games played by player (quotient of total & input games) This average is then used to determine the number of coin flips (#2): Set the number of Prize Possibilities based on the quotient from the 1st step 1 through 9-1 Flip of a coin 10 through 19 - 3 Flips of a coin 20 through 39. - 5 Flips of a coin 404 through 69 - 8 Flips of a coin 70 or more - 12 Flips of a coin Randomly flip a 'coin' based on the number of Flips set in the 2nd step. Return and output either the Win or Lose for each flip and count the number of 'Wins' Display the number of wins along with the prize won. Choose 6 prizes and display the prize picture and caption for each win. Choose prizes that increase in value/quality the-player only wins 1 prize -display the best prize based on the value matched with the # of wins. Accumulate the number of each prize won so management can keep prize stock up to date. Show these totals in a formatted message box when management clicks an appropriate prize totals button. There will be 6 prizes so 6 accumulators will be required... 1 per prize (yes, an array would be nice but we're not there so do it the 'old fashioned' way but as efficient as possible!) Display these totals from the Prize Totals button in a message box, giving the user the ability to reset these totals The combo box contains all players allowed to play. Add Player & Remove Player buttons to add/remove player names from the combo box. Validate input and removal. Do not allow the addition of an existing player name. You can use first names only for ease of processing and validation. Create an application for slot machine game. Players are allowed to play as many games as they want although they must enter the number of games to play when they begin. Prizes are awarded based upon the number of wins the player has. You will need to accumulate wins then determine the number of chances to win a prize then roll to win a prize. (explained below!) This program will involve several Loops... use both WHILE DO and FOR loops in your design. Input includes both the selection of a Player name up a combo box with at least 8 player names; 1 per line Number of games to play for the selected player. Validate these appropriately. Play, Prize totals, Add Player, Remove Player, New Player, Save Data/Clear List box, Player report, Ext When selected: It represents 1 game -allow it to be clicked one time per game played for a player (input # games) 3 random values should be created and assigned to variables Display the 3 values (you can use letters, numbers, pictures) as with a game Determine the points won based on the following... All 3 random values match 100 points Any 2 random values match 50 points Accumulate the number of points the player earns for the number games they play (based on input #games). Count the number of games and stop play when the input number of names has been played. At the end of the player's turn (when the number of games is over) Determine the prize won in the following manner Determine the number of turns to win a prize in the following manner.... Find the average points based on number of games played by player (quotient of total & input games) This average is then used to determine the number of coin flips (#2): Set the number of Prize Possibilities based on the quotient from the 1st step 1 through 9-1 Flip of a coin 10 through 19 - 3 Flips of a coin 20 through 39. - 5 Flips of a coin 404 through 69 - 8 Flips of a coin 70 or more - 12 Flips of a coin Randomly flip a 'coin' based on the number of Flips set in the 2nd step. Return and output either the Win or Lose for each flip and count the number of 'Wins' Display the number of wins along with the prize won. Choose 6 prizes and display the prize picture and caption for each win. Choose prizes that increase in value/quality the-player only wins 1 prize -display the best prize based on the value matched with the # of wins. Accumulate the number of each prize won so management can keep prize stock up to date. Show these totals in a formatted message box when management clicks an appropriate prize totals button. There will be 6 prizes so 6 accumulators will be required... 1 per prize (yes, an array would be nice but we're not there so do it the 'old fashioned' way but as efficient as possible!) Display these totals from the Prize Totals button in a message box, giving the user the ability to reset these totals The combo box contains all players allowed to play. Add Player & Remove Player buttons to add/remove player names from the combo box. Validate input and removal. Do not allow the addition of an existing player name. You can use first names only for ease of processing and validation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
