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.
-
Suppose that a bank is expected to pay an annual dividend of $4 per share on its stock in the current period and dividends are expected to grow 5 percent a year every year, and the minimum required...
-
A playground slide is in the form of an arc of a circle that has a radius of 12 m. The maximum height of the slide is h = 4.0m, and the ground is tangent to the circle (Figure). A 25 kg child starts...
-
You need to understand the approach described in question 3 in More Genetic TIPS before answering this question. A gene that is normally expressed in pancreatic cells was cloned and then subjected to...
-
Southwest Milling Co. purchased a front-end loader to move stacks of lumber. The loader had a list price of $140,000. The seller agreed to allow a 4 percent discount because Southwest Milling paid...
-
Rene and Fred work in the same department. They must work together to complete a report on the last day of each month. Rene is working in her cubicle when Fred walks up and starts a conversation. If...
-
Baer Belly Bikinis, Inc. (BBB) is a small business located in Santa Monica, California. It sells swimwear and related products to specialty stores throughout the United States. It also sells its...
-
Explain what is meant by 'individualism' and what is the opposite of it Give an example of both.
-
according to kenneth lusht What units of comparison are commonly used for estimating the rent kinds of properties?
-
J&B Trucking Co. has net book value of $10,000 left for equipment. None of this equipment was purchased during the year. The equipment is amortized using declining balance at a rate of 20% per year....
-
David is driving at 24 m/s during a storm when he suddenly notices cars 52.3 m ahead fully stopped due to lane closures. What is the minimum coefficient of kinetic friction needed to avoid an...
-
On January 1, Jarel acquired 80% of the outstanding voting stocks of Suarez for $260,000 cash consideration. The remaining 20% of Suarez had an acquisition-date fair value of $65,000. On January 1,...
-
Nyeleti is a recently admitted Attorney of the High Court of South Africa. She has been working as a Senior Associate (Legal) for a successful company called La Loca Vaca for the past 10 years....
-
Maddy has net employment income of $45,000. During the year, he received spousal support payment of $10,000, Child support payment for his 10 year old son of $12,000 an a $50,000 term deposit that...
-
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 pirate industry has taken hold in Somalia, and with 23,000 ships coming through the Gulf of Aden annually, the operations of pirates appear to be located centrally. There are 18 to 21 ships...
-
NLC issued a report that Liz Claiborne, Walmart, Ann Taylor, Esprit, Ralph Lauren, JCPenney, and Kmart were using subcontractors in China that use Chinese women (between the ages of 17 and 25) to...
-
In the early 1980 s, Colombian drug barons, large landowners, industrialists, and bankers, with the cooperation of the Colombian government, began to create private paramilitary units to combat the...
Study smarter with the SolutionInn App