EBK STARTING OUT WITH VISUAL C#
EBK STARTING OUT WITH VISUAL C#
5th Edition
ISBN: 9780135204818
Author: GADDIS
Publisher: VST
Question
Book Icon
Chapter 9, Problem 3PP
Program Plan Intro

SLOT MACHINE SIMULATION

Program plan:

  • Design the page.
    • Add title to the form as “Slot Machine”.
    • Place three picture box controls in the form.
    • Place a label control and edit its text property as “Amount Inserted: $”.
    • Place two buttons and edit their text property as “Spin” and “Exit” respectively.
  • In the code window, write the code to:
    • If amount is inserted then execute the form.

Form design:

  • Open Microsoft Visual Studio 2010.
  • Select C# and click Windows Forms Application.
  • Name the project as Slot_Machine.
  • Store the file in D:\Clearly C#\ Slot_Machine.
  • The crated project displayed with a form with the name of Form1.
  • Select the Form1 and add the necessary components.
  • In property window, change the Form name and add changes for Form elements properties.
  • Click the File menu->Save All.

View of the form design in the IDE:

EBK STARTING OUT WITH VISUAL C#, Chapter 9, Problem 3PP

The form control properties in the properties window are as follows:

ObjectPropertySetting
Form1TextSlot Machine
pictureBox1ImageLocation of the image
pictureBox2ImageLocation of the image
pictureBox3ImageLocation of the image
label1TextAmount inserted: $
button1TextSpin
button2TextExit
  • Add three picture box control in the form.
  • Add a label control to display the amount inserted.
  • Add the button control spin to execute the slot machine.
  • Add the button control exit to stop the execution the program.

Blurred answer
Students have asked these similar questions
Attached is a text file called "Test.txt" that I've created for Python: "There was nothing so very remarkable in that; nor did Alice think it so very much out of the way to hear the Rabbit say to itself, “Oh dear! Oh dear! I shall be late!” (when she thought it over afterwards, it occurred to her that she ought to have wondered at this, but at the time it all seemed quite natural); but when the Rabbit actually took a watch out of its waistcoat-pocket, and looked at it, and then hurried on, Alice started to her feet, for it flashed across her mind that she had never before seen a rabbit with either a waistcoat-pocket, or a watch to take out of it, and burning with curiosity, she ran across the field after it, and fortunately was just in time to see it pop down a large rabbit-hole under the hedge."   I'm trying to create a Markov chain with this code I have here (markov.py) but the program won't run because it doesn't have a direct path to "Test.txt".  Can you help me fix this issue?…
dont use chatgbt to solve this question please and thank you.
dont use chatgbt to solve this question please and thank you.

Chapter 9 Solutions

EBK STARTING OUT WITH VISUAL C#

Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage