ONLY A COMBINATION OF JAVASCRIPT , HTML ,CSS Slot Machine [15 marks] Amount Inserted: $ Spin Ext
Fantastic news! We've Found the answer you've been seeking!
Question:
ONLY A COMBINATION OF JAVASCRIPT , HTML ,CSS
Transcribed Image Text:
Slot Machine [15 marks] Amount Inserted: $ Spin Ext 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 matches, the user wins an amount of money that the slot machine dispenses back to the user. Create an application that simulates a slot machine. 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. 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 matches, the program should inform the user that he or she has won two times the amount entered. If three of the images matches, 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. Grading Criteria i. ii. iii. a. Spin feature: 10 marks Display random images Compute the winning amount Inform the user the result b. Able to determine the total winnings : 5 marks Slot Machine [15 marks] Amount Inserted: $ Spin Ext 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 matches, the user wins an amount of money that the slot machine dispenses back to the user. Create an application that simulates a slot machine. 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. 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 matches, the program should inform the user that he or she has won two times the amount entered. If three of the images matches, 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. Grading Criteria i. ii. iii. a. Spin feature: 10 marks Display random images Compute the winning amount Inform the user the result b. Able to determine the total winnings : 5 marks
Expert Answer:
Answer rating: 100% (QA)
ANSWER To create an application that simulates a slot machine we can use C programming language and Windows Forms for the user interface Heres an exam... View the full answer
Related Book For
Spreadsheet Modeling and Decision Analysis A Practical Introduction to Business Analytics
ISBN: 978-1285418681
7th edition
Authors: Cliff Ragsdale
Posted Date:
Students also viewed these electrical engineering questions
-
JavaScript code in an HTML document goes within which HTML element?
-
Why are JavaScript scripts sometimes hidden in HTML documents by putting them into HTML comments?
-
How can you check if your HTML and CSS files display correctly? How often should you check? Why?
-
Determine whether the statement is true or false. If it is true, explain why. If it is false, explain why or give an example that disproves the statement.
-
Explain one harm associated with unexpected inflation that is not associated with expected inflation. Then explain one harm associated with both expected and unexpected inflation.
-
In problem, find the center and radius of each circle. Graph each circle. Find the intercepts, if any, of each circle. x 2 + (y - 1) 2 = 4
-
The balance sheet of Banc One Corp. at December 31, 2007, reported 500,000 shares of \(\$ 1\) par common stock authorized with 100,000 shares issued. Paid-In Capital in Excess of Par had a balance of...
-
Giant acquired all of Small's common stock on January 1, 2011. Over the next few years, Giant applied the equity method to the recording of this investment. At the date of the original acquisition,...
-
A long-established caf located in inner west Brisbane residential suburb is facingit'stime to figure out their budget for the coming quarter. During the last quarter, the caf had spent roughly $500...
-
Whitestone Company produces two subassemblies, JR-14 and RM-13, used in manufacturing trucks. The company is currently using an absorption costing system that applies overhead based on direct-labor...
-
you start from a Windows 7 computer and install Windows 10 while maintaining your Windows 7 installation. Answer the following questions in preparation for this installation: Discussion Questions a....
-
A small rock is thrown vertically upward with a speed of 29.0 m/s from the edge of the roof of a 25.0-m-tall building. The rock doesn't hit the building on its way back down and lands in the street...
-
A gray kangaroo can bound across level ground, with each jump carrying it 9.4 m from the takeoff point. Typically, the kangaroo leaves the ground at a 25-degree angle. If this is so: A) What is its...
-
Simplify -3125x2 completely. Write answer in radical form. Answer = Entry Tip: To enter an answer like 50/2, type 50*root(3)(x^2). Preview your a submitting! Question Help: Message instructor...
-
1. How does one physically decrease the impact force during a drop jump? 2. How would this reduction in force affect the landing? Explain. 3. Give an example of a sport where you would want: a. A...
-
Find and simplify f(x+h). Simplify your answer. f(x) = 7+3x
-
5. Open Sea owns and operates a plant that cost RM2.4 million and had an accumulated depreciation of RM720,000 on 1 January x4. It is being depreciated at 15% on cost. On 1 July x4, the plant was...
-
A condenser (heat exchanger) brings 1 kg/s water flow at 10 kPa quality 95% to saturated liquid at 10 kPa, as shown in Fig. P4.91. The cooling is done by lake water at 20C that returns to the lake at...
-
Refer to the previous question. Create a spreadsheet model to simulate the completion times for the auditing project. Assume that activity times follow a triangular distribution and perform 500...
-
Cuts-R-Us provides low cost haircuts at a shopping center in Boise, Idaho. During the day, customers arrive at an average rate of nine per hour following a Poisson distribution. After a customer is...
-
Refer to question 24 at the end of Chapter 2. Implement a spreadsheet model for this problem and solve it using Solver.
-
The efficiency of the viscous-shear pump of Fig. P8.29 is given by \[\eta=6 q \frac{(1-2 q)}{(4-6 q)}\] where \(q=Q / a b R \omega\) is a dimensionless flow rate, \(Q\) is the flow rate at pressure...
-
A continuous belt, passing upward through a chemical bath at speed \(U_{0}\), picks up a liquid film of thickness \(h\), density \(ho\), and viscosity \(\mu\). Gravity tends to make the liquid drain...
-
A wet paint film of uniform thickness, \(\delta\), is painted on a vertical wall. The wet paint can be approximated as a Bingham fluid with a yield stress, \(\tau_{y}\), and density, \(ho\). Derive...
Study smarter with the SolutionInn App