Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A slot machine is a gambling device that user inserts money into and then pulls a lever (or press a button). The slot machine then

A slot machine is a gambling device that user inserts money into and then pulls a lever (or press a button). The slot machine then displays a set of random images. If two or more of the images match, the user wins an amount of money, which the slot machine dispenses back to the user.

Design a program that simulates a slot machine. When the program runs, it should do the following: Display three same words (for example 7, 7, 7) side-by-side. Ask the user if he/she ready to start play. After user confirmed, ask user to enter the amount of money he or she wants to bet, and then the three words will be refreshed with randomly picked words from a list of words, use the words( Cherries, Oranges, Plums, Bells, Melons, Bars ) or use your ownIf none of the randomly picked words match, the program will inform user that he or she has won 0. If two of the images/words match, the program will inform the user that he or she has won two times the amount bet. If three of the words match, the program will inform the user that he or she has won three times the amount entered.The program will ask whether the user wants to play again. If so, these steps are repeated. If not, the program displays the total amount of money bet and the total amount the user won.Note: do not count for the real gain or loss. Every time the user inserts money, that is a bet amount, each time the machine dispenses money, that is a won amount.

Here is the list of words you may use: Cherries, Oranges, Plums, Bells, Melons, and Bars. The attached you may find some images if you want to use.

You may use this sample output while creating your project: Bet Amount Words/Images Picked Won Amount Game 1: 2 Melons Bars Bells 0 Game 2: 3 Plums Plums Plums 9 Game 3: 4 Bars Oranges Bars 8 Game 4: 5 Bells Cherries Plums 0 ---------------------------------------------------------------------------------------------------------------------------------------------------------- Total Games Played: 4 Total Bet Amount: $14 Total Won Amount: $17

It must be solved using raptor flowchart only and no other programming language.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions