Concept explainers
Please provide answer in C#:
Slot Machine Simulation
A slot machine is a gambling device into which the user inserts money and then pulls a lever (or presses 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 that the slot machine dispenses back to the user.
Create an application that simulates a slot machine. Figure 8-23 (on page 539 of your book) shows an example of how the form should look. The application should let the user enter into a TextBox the amount of money he or she is inserting into the machine. When the user clicks the Spin button, the application should display three randomly selected symbols. (Slot machines traditionally display fruit symbols. You will find a set of fruit symbols attached to this dropbox for your use - from the Student Sample Programs provided by the book author.)
If none of the randomly displayed images match, the program should inform the user that he or she has won $0. If two of the images match, the program should inform the user that he or she has won two times the amount entered. If three of the images match, the program should inform the user that he or she has won three times the amount entered. When the user clicks the Exit button to exit the application, the program should display the total amount of money entered into the slot machine and the total amount won.
Trending nowThis is a popular solution!
Step by stepSolved in 5 steps with 11 images
- PYTHON ONLY PLZZZZ Create a car object with the following attributes and actions: Name Make Model Year price Actions: Compute the age of the car Compute the cost plus a 9% tax Compute a 10% depreciation for every 5 years To string Test your object: Ask the user for all the information compute using all the actions of the object print using the to string action Describe the numbers and text you print. Do not just print numbers or strings to the screen explain what each number represents.arrow_forwardIf you want your application to do any action, what should you do first?arrow_forwardPython GUI tkinter: Using tkinter create a GUI that displays the word cat. The user clicks on the word and sees its synonyms as replacements. When the user selects a desired synonym the synonym replaces the original word. For example: cat The user clicks on that word and has these options listed in a listbox: animal friend companion The user clicks on animal so the GUI now says: animalarrow_forward
- C Language programming Write a program that displays the following message exactly. Submit a screenshot of the program running on Eustis as well if possible. Output: My name is John Smith. I am a student . I am happy to be here. I am very excited to learn the C Languagearrow_forwardA(n) is a Visual Basic statement that causes a variable to be created in memory.arrow_forwardOpenGL Programming Help (please provide a screenshot that it works) Write a program that creates a three-dimensional figure of the University logo "IU" that animates. The In response to the menu selection, one of the two letters will spin about a vertical axis. When the user clicks on the right mouse button and selects the menu option to spin the “U”, the “I” should stop spinning and the “U” should spin in the same manner. At no point should both letters spin at the same time. This should use a display listarrow_forward
- Do this in JAVA Programmingarrow_forwardObject-Oriented Programming OvalDraw Plus (Java code) Summary: Create a graphical application with Java that that draws an oval Prerequisites: Java, VS Code, and Terminal Create a graphical Java application that runs on Microsoft Windows and MacOS that draws an oval centered in the main application window when the programming starts. The oval should automatically resize and reposition itself when the window is resized. In this activity you will start with our OvalDraw application in our sample code, review the code, and then make incremental improvements to the application. Be sure to make the resulting application uniquely your own by adding standard comments at the top application (i.e. your name, class, etc.), changing the names of variables, and adding small features. Finally, be sure to save your work as you will often be asked to submit it as part of an assignment. Be sure to review the example OvalDraw project in the Java section of our example code repository. Requirement 1:…arrow_forwardWhat may happen if you hovered the mouse over an unstable section of code for a long time?arrow_forward
- 7. Long-Distance Calls A long-distance provider charges the following rates for telephone calls: Rate Category Rate per Minute Daytime (6:00 A.M. through 5:59 p.M.) $0.07 Evening (6:00 p.M. through 11:59 p.M.) $0.12 Off-Peak (midnight through 5:59 a.M.) $0.05 Write a GUI application that allows the user to select a rate category (from a set of radio buttons), and enter the number of minutes of the call into an Entry widget. An info dialog box should display the charge for the call.arrow_forwardAlert: Don''t submit AI generated answer and give proper step by step answer with an explanation. Question 11 Python allows the programmer to work with text and number files. True Falsearrow_forwardWhat may happen if you hovered the mouse over an unstable section of code for a long time?arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education