ed as follows: • If the user wins, the user gets 2x the bet. • Otherwise, the user loses the bet. The game continues until: • the user is out of money • or the user chooses to qui

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

Write a C# program that plays Rock–paper–scissors game. The user bets 10 dollars on the Rock–paper–scissors
game.

The payouts are defined as follows:
• If the user wins, the user gets 2x the bet.
• Otherwise, the user loses the bet.
The game continues until:
• the user is out of money
• or the user chooses to quit the game by entering 0
• or either the user or the computer wins 4 games first.
The user initially has 100 dollars.
Design a modularized solution with two classes. Develop your own program structure.

Expert Solution
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Control Structure
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