You are required to design and develop a program to simulate a One Arm Bandit Machine, called the Electronic Bandit.

Upon insertion of a £1 coin the Electronic Bandit will allow the player to have five goes. With each go, the Electronic Bandit will randomly display three shapes, one shape per column. For each column one shape is chosen randomly out of 8. Here are the basic rules:

3 shapes of the same type win £1
2 shapes of the same type win 50p
one particular shape, say a banana win 20p

The player should not be able to play if no money is inserted.
The credit is decremented and displayed as you play.
The winnings are also displayed and updated as you play
The player should be allowed to choose either to cash in any wins or
be credited and play again.

You can choose to enhance the program in the area of user-interface and/or functionality. Marks will be awarded dependent on the quality and creativity of the enhancement.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.