C++ questions, Please make sure to divide your program into functions which perform each major task. The...

80.2K

Verified Solution

Question

Programming

C++ questions, Please make sure to divide your program intofunctions which perform each major task.

The game of rock paper scissors is a two player game in whicheach each player picks one of the three selections: rock, paper andscissors. The game is decided using the following logic:

  • ROCK defeats SCISSORS (“smashes”)

  • PAPER defeats ROCK (“wraps”)

  • SCISSORS defeats PAPER (“slices”)

    If both players choose the same selection the game ends in atie. Write a program that asks the user to select one of the threechoices. The computer will randomly choose one of the three optionsas well. Your program will then display both players' selections aswell as the who won the game.

Answer & Explanation Solved by verified expert
3.7 Ratings (721 Votes)
Below is the codeinclude include    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students