The slot machine then displays a set of random images. Your program performs the tasks indicated by the player.Ī slot machine is a gambling device that the user inserts money into and then pulls a lever (or presses a button). If the balance is insufficient, prompt the user to deposit more money, else the game chosen by the player starts.Ħ.Ět the end of each game run, show the following messages: the player’s total deposit, the winning or losing amount and the account balance.ħ.Ěsk the player whether he or she wishes to continue to play a game. Your program needs to keep track of the player’s account balance through the entire game.Ĥ.ĝisplay a game menu containing the two games offered (Slot Machine, Blackjack) and prompt the player to choose a game he or she wants to play: 1=Slot Machine, 2= Blackjack and the amount the player would like to bet on the chosen game.ĥ.Ěfter a game selection is made, check the player’s account balance.
2.ĝisplay a personalized welcome message.ģ.Ěsk the player to make an initial deposit, the required minimum amount is $20 and the max is $1000.