Question: Using Python 3.1.1 Design a program for the following question: Generate the slots! The Player starts off with $100 in hand. The Player places a

Using Python 3.1.1 Design a program for the following question:

Generate the slots! The Player starts off with $100 in hand. The Player places a bet for each time they wish to continue to play. The computer chooses three random fruit. Cherries, Oranges, Plums, Bells, Melons, Bar. Display the fruit that were randomly selected. If no fruit match the player loses $5, If 2 fruit match the player wins $25, If all 3 match the player wins $75 Track how much money the player wins. If the player wins add the winnings onto their money on hand. If they lose, subtract $5 from their money on hand. The game ends when they choose to stop playing OR when their money on hand is less than 0. Your code should demonstrate the use of : Arrays, Looping structure (while and/or for), Commenting (minimum of your name, date and purpose).

Sample Output:

Welcome to the slots game!

Lets pull the handle! You got: Cherries Cherries Plums

Two match! You won $25. Your total in hand is now $125

Want to play again? yes

Lets pull the handle! You got:

Plums Bells Bars

No matches. You won 0$. Your total on hand is now $120

Want to play again? no

Thank you for playing! You now have $120 in your pocket.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!