Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Re-familiarize yourself with how to play Rock, Paper, Scissors by viewing the following YouTube video. You will be writing the code to implement a game

Re-familiarize yourself with how to play Rock, Paper, Scissors by viewing the following YouTube video. You will be writing the code to implement a game judge, taking information on two players selections and displaying the game result.

Functionality:

Prompt the user to enter the first player's selection.

Then ask for the second player's selection.

Finally display who the winner is and the appropriate statement " ".

Example: "Rock smashes Scissor. Player 1 wins." Only use the programming constructs we have learned thus far. Don't skip ahead and use other language constructs to simplify the program. This will likely be an example of a difficult to follow implementation. The code wont look nice. Do your best with comments and formatting, to make clear what the program is doing.

Assumptions:

No invalid user inputs, other than a blank entry, will be checked. Assume the user only enters valid entries.

If user input is empty, then exit the program after displaying an error message.

If you use text input, you don't need to worry about checking capitalization of the user input. Assume all letters will be lowercase. Likewise, assume all inputs are always spelled correctly.

Re-familiarize yourself with how to play Rock, Paper, Scissors by viewing the following YouTube video. You will be writing the code to implement a game judge, taking information on two players selections and displaying the game result.

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

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

Does it avoid use of underlining?

Answered: 1 week ago