Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C# programming language, you are required to create a game that plays the rockpaperscissors. The user bets 10 dollars on the Rockpaperscissors game. The

Using C# programming language, you are required to create a game that plays the rockpaperscissors. The user bets 10 dollars on the Rockpaperscissors game. The payouts are defined as follows:

If the user wins, the user gets 2x the bet.

Otherwise, the user loses the bet.

Use a random number generator Random rnd = new Random(); [your variable] = rnd.Next(1, 4);

The user starts the game with $100

The game continues until:

a. the user is out of money

b. or the user chooses to quit the game by entering 0

c. or either the user or the computer wins 4 games first.

Develop the program using two files (in addition to your main program file, create your own Class, Game).

Use selection statement(s) and loop statement(s).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions