You are to create the classic game of Wheel of Fortune. Your application should consist of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You are to create the classic game of Wheel of Fortune. Your application should consist of 3 players, underlines to represent letters in the puzzle, and the available letters. The initial screen should look something like: Wheel of Fortune Puzzle SO Available letters: Player 1 Spin ABCDEFGHIJKLMNOPQRSTUVXYZ SO Player 2 Player 1 - Spin or Solve Solve SO Player 3 10 0 X ‒‒‒‒‒‒‒‒‒‒‒‒‒‒‒‒‒‒‒‒ **Note: My puzzle is "Pulp Fiction" but pick your own puzzle** Notice that Player 1 goes first (see note at bottom of screen) and can either spin or guess the puzzle by clicking the appropriate button. If Player 1 spins, then the wheel will spin. To represent the wheel, create a random number from 1 to 10. Each will represent a spot on the wheel. Here are the wheel values: Random number 1: Random number 2: Random number 3: Random number 4: Random number 5: $100 $300 $500 $700 $900 Random number 6: $2000 Random number 7: $3000 Random number 8: $5000 Random number 9: -$1000 Random number 10: $0 // player loses $1000 from his/her total and loses that turn // player only loses turn So, if Player 1 decides to spin, and the random number generated is 4, then the value is $700. Display this amount (maybe with a MessageBox) and ask Player 1 for a letter. Let's say Player 1 chooses the letter "P" (note that if a player enters a bad entry like "2", use exception handling so the game does not crash). The letter "P" is in the puzzle and it appears twice. Therefore, display the letter P in the correct position in the puzzle, take this letter off the available letter list, add dollar value total to player 1 (in this case it would be $1400 since it appears twice). Also keep the dollar amounts for each player in an array. Ask Player 1 to spin or guess the puzzle. Wheel of Fortune Puzzle P $1400 Available letters: Player 1 Spin P ABCDEFGHIJKLMNO QRSTUVWXYZ SO Player 2 Player 1 - Spin or Solve Solve SO Player 3 0 X If Player 1 gives an incorrect letter, display "Incorrect" in a MessageBox, take this letter off the available letter list, and now ask Player 2 to Spin or Guess. Remember that player 1 does not lose any money for incorrect guesses. If Player 2 spins, generate a random number again between 1 and 10 to get the value. The game continues this way for 3 players until someone guesses the puzzle. If a player decides to guess the puzzle, prompt the player for the answer. If the answer is correct, display a great message telling that player that he/she is the winner and also display the player and total money won in a separate window (multiform). If the guess is incorrect, display an "Incorrect" message and continue the game. You are to create the classic game of Wheel of Fortune. Your application should consist of 3 players, underlines to represent letters in the puzzle, and the available letters. The initial screen should look something like: Wheel of Fortune Puzzle SO Available letters: Player 1 Spin ABCDEFGHIJKLMNOPQRSTUVXYZ SO Player 2 Player 1 - Spin or Solve Solve SO Player 3 10 0 X ‒‒‒‒‒‒‒‒‒‒‒‒‒‒‒‒‒‒‒‒ **Note: My puzzle is "Pulp Fiction" but pick your own puzzle** Notice that Player 1 goes first (see note at bottom of screen) and can either spin or guess the puzzle by clicking the appropriate button. If Player 1 spins, then the wheel will spin. To represent the wheel, create a random number from 1 to 10. Each will represent a spot on the wheel. Here are the wheel values: Random number 1: Random number 2: Random number 3: Random number 4: Random number 5: $100 $300 $500 $700 $900 Random number 6: $2000 Random number 7: $3000 Random number 8: $5000 Random number 9: -$1000 Random number 10: $0 // player loses $1000 from his/her total and loses that turn // player only loses turn So, if Player 1 decides to spin, and the random number generated is 4, then the value is $700. Display this amount (maybe with a MessageBox) and ask Player 1 for a letter. Let's say Player 1 chooses the letter "P" (note that if a player enters a bad entry like "2", use exception handling so the game does not crash). The letter "P" is in the puzzle and it appears twice. Therefore, display the letter P in the correct position in the puzzle, take this letter off the available letter list, add dollar value total to player 1 (in this case it would be $1400 since it appears twice). Also keep the dollar amounts for each player in an array. Ask Player 1 to spin or guess the puzzle. Wheel of Fortune Puzzle P $1400 Available letters: Player 1 Spin P ABCDEFGHIJKLMNO QRSTUVWXYZ SO Player 2 Player 1 - Spin or Solve Solve SO Player 3 0 X If Player 1 gives an incorrect letter, display "Incorrect" in a MessageBox, take this letter off the available letter list, and now ask Player 2 to Spin or Guess. Remember that player 1 does not lose any money for incorrect guesses. If Player 2 spins, generate a random number again between 1 and 10 to get the value. The game continues this way for 3 players until someone guesses the puzzle. If a player decides to guess the puzzle, prompt the player for the answer. If the answer is correct, display a great message telling that player that he/she is the winner and also display the player and total money won in a separate window (multiform). If the guess is incorrect, display an "Incorrect" message and continue the game.
Expert Answer:
Related Book For
Using Microsoft Excel and Access 2016 for Accounting
ISBN: 978-1337109048
5th edition
Authors: Glenn Owen
Posted Date:
Students also viewed these programming questions
-
Make a Online Shopping System java program that applies concepts of inheritance (contructors, overloaded, using this. , super(), superclass, subclass, etc. ) You can make any program that will apply...
-
For this assignment, you are to create a stored procedure that returns a complete dataset to the calling program. The dataset will be based on a query that joins several tables together. The output...
-
Part One: Requirement: You are to create a comprehensive job analysis for a job of your choice. Background Information for (JOB TITLE) Job Analysts Name: Date and Time of interview: Subject Matter...
-
Why would senior managers want to distort factor prices by using cost allocations?
-
Local cable television companies are sometimes granted monopoly rights to service a particular territory of a metropolitan area. The companies typically pay special taxes and licensing fees to local...
-
The null hypothesis for ANOVA posits no difference among population means, as in other hypothesis tests, but the research hypothesis in this case is a bit different. Why?
-
What would happen to the SML graph in Figure 8.8 if expected inflation increased or decreased? Figure 8.8 268 269 270 271 272 273 274 275 A Required Rate of Return TH-13.0% SML: r, RF+RPM * b D E F H...
-
Daley Company estimates uncollectible accounts using the allowance method at December 31. It prepared the following aging of receivables analysis. a. Estimate the balance of the Allowance for...
-
Find a big-O estimate (in terms of n) for the run-time of the code given below. m+0 for i1 to n forji i to n * n m+i+j (b) i1 while i n j <1 while j i jj+1 i+i+1 Activate Go to Setti
-
A thin smooth disk of diameter D is immersed parallel to a uniform stream of velocity U. Assuming laminar flow and using flat-plate theory as a guide, develop an approximate formula for the drag of...
-
Who should be responsible for coordination of work done in each of the following cases and provide example for each: (a) Work performed by the contractor and his subcontractors? (b) Work performed by...
-
What are the five forces and how are they used to analyze an industry?
-
Discuss the role of social media in global business communication.
-
Develop a cultural profile for one of the countries in the following list. Form small groups of students and compare your findings in class with those of another group preparing a profile for another...
-
Explain what is meant by the economic risk of a nation. Use a specific country as an example. Can economic risk in this country be anticipated? How? How does economic instability affect other nations?
-
Why is an organizations understanding of its value chain important?
-
Consider the following Linear Programming Problem: Max z5x1 +3x2 = Subject to: 4x12x212 4x1 x210 x1+x24 x10, x2 0 i Solve this LP using the Simplex Method till we get a Basic Feasible Solu- tion...
-
Activator rod AB exerts on crank BCD a force P directed along line AB. Knowing that P must have a 100-N component perpendicular to arm BC of the crank, determine (a) The magnitude of the force P, (b)...
-
Describe how Excel can be used to calculate an allowance for uncollectible accounts using the aging method.
-
Describe the Excel functions used in the Hi-Lo method of predicting costs.
-
Which ratios are usually formatted as percentages?
-
We have data on the distance covered by irrigation water in a furrow of a field. The data are to be used to relate the distance covered to the time since watering began. The data are given in Table...
-
Data were collected to discern environmental factors affecting health standards. For 21 small regions we have data on the following variables: The data are given in Table 8.27. (a) Perform a...
-
Twenty-five volunteer athletes participated in a study of cross-disciplinary athletic abilities. The group was comprised of athletes from football, baseball, water polo, volleyball, and soccer. None...
Study smarter with the SolutionInn App