Make a program which simulates a slot machine when the

Assignment Help Computer Engineering
Reference no: EM13465908

Create a program that simulates a slot machine. When the program runs, it should do the following:

1. Asks the user to enter the amount of money he or she wants to enter into the slot machine.

2. Instead of displaying images, have the program randomly select a word from the following list:

Cherries, Oranges, Plums, Bells, Melons, Bars

To select a word, the program can generate a random number in the range of 0 through 5. If the number is 0, the selected word is Cherries, if the number is 1, the selected word is Oranges, and so forth. The program should randomly select a word from this list three times and display all three of the words.

3. If none of the randomly selected words match, the program informs the user that he or she has won $0. If two of the words match, the program informs the user that he or she has won two times the amount entered. If three of the words match, the program informs the user that he or she has won three times the amount entered.

4. The program asks if 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 won.

In addition, there are two additional requirements.

1. Create a UML diagram for the program.

2. Provide a list of tests to prove that the program works correctly. There should be at least 8 test cases.

Reference no: EM13465908

Questions Cloud

Write a 1050- to 1400-word paper in which you select an : writea 1050- to 1400-word paper in which you select an organization with which you are familiar and present the
Find some beneficial trends you think will affect health : what are some beneficial trends you think will affect health psychology in the future? what are some detrimental trends
Write a research report based on a hypothetical research : write a research report based on a hypothetical research study. conducting research and writing a report is common
Select an organization with which everyone in your learning : select an organization with which everyone in your learning team is familiar.write a minimum of a 1400-word paper in
Make a program which simulates a slot machine when the : create a program that simulates a slot machine. when the program runs it should do the following1. asks the user to
Sppose youre an executive for bp and youre preparing a : imagine you are an executive for bp and you are preparing a presentation for the board of directors about the
How may an individual employees personality affect : how might an individual employees personality affect the performance of an organization? if the effect is negative how
Complete two competitor profiles for a healthcare : complete two competitor profiles for a healthcare organization. the healthcare organization could be your current or
The spearmans rho requires that the both sets of data be : 1.which of the following defines a linear relationship between variables? as one variable rises and falls the other

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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