Create a random chance one-player game with prizes that is fun to play. The game should include all of the following elements: The game should be fair. The expected value for the player should be 0. This could be accomplished by charging a set fee to play, or by adjusting prize amounts. At least three different actions should be taken by the player while playing. Examples include, but are not limited to, drawing a card, rolling a 12-sided die, flipping a coin, etc. For the game to be fun, the player should win 20-40% of the time. You must be able to play the game, or simulate playing it using online random number generators.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 5GZ
icon
Related questions
Question

Create a random chance one-player game with prizes that is fun to play. The game should include all of the following elements:

  1. The game should be fair. The expected value for the player should be 0. This could be accomplished by charging a set fee to play, or by adjusting prize amounts.
  2. At least three different actions should be taken by the player while playing. Examples include, but are not limited to, drawing a card, rolling a 12-sided die, flipping a coin, etc.
  3. For the game to be fun, the player should win 20-40% of the time.
  4. You must be able to play the game, or simulate playing it using online random number generators.

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Adjacency Matrix
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,