Displays the total amount of money entered into slot machine

Assignment Help Programming Languages
Reference no: EM131251233

A slot machine is a gambling device that user inserts money into and then pulls a lever (or press a button), and then 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 in Raptor , flowchart that simulates a slot machine. When the program runs, it should do the following:

Ask the user to enter the amount of money he or she wants to insert into the slot machine.

Instead of displaying images, the program will call a user defined function three times, each randomly select a word from the following list: Cherries, Oranges, Plums, Bells, Melons, Bars.

If none of the randomly selected words match, the program will inform user that he or she has won 0. If two of the words match, the program will inform user that he or she has won two times the amount entered. 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 entered into the slot machine and the total amount the user won.

Reference no: EM131251233

Questions Cloud

Discuss sourcing : Discuss sourcing. How do companies select the right bids?
Mixed economic system : What is an example of a market, command, and mixed economic system?
What are some various theories on free trade : What are some various theories on free trade? Please give some examples as to what countries have used them and any success they've had.
Payroll tax fraud by withholding employee payroll taxes : In Little Rock, Arkansas, a church pastor was found guilty of payroll tax fraud by withholding employee payroll taxes and failing to remit them from 2006 through 2010. The pastor is serving a sentence of 33 months in prison with 5 years of supervised..
Displays the total amount of money entered into slot machine : 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 entered into the slot machine and the total amount the user won.
Describe how your partition was established : Partition the more than 10,000 data records into training and validation sets. Describe how your partition was established.
Suitable for a business document and enhances readability : Explain your findings. Based on the readability tests you conducted, assess whether you consider the excerpt contains language which would be suitable for a business document and enhances readability. The excerpt should be supplied by mail/fax or ..
Allowed employers to select their employee pay method : The State of Kansas passed legislation in 2007 that allowed employers to select their employee pay method. The legislation was known as the “paperless payroll law,” and many employers opted to give their employees paycards instead of cash, check, or ..
Fit a predictive model based on linear regression : Describe which data you used from the Spending and Bankruptcy Data Set, and what modifications you had to make to that data.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd