C++ using multiple functions if possible. Write a program to score the paper-rock-scissor game. For this game, the user will play against the computer, so have the computer selection use Random.  The user types in either P, R, or S, (or 1, 2, or 3, depending on how you set it up).  Make sure to include error checking to help the user enter the correct data selections.  The program then announces the winner as well as the basis for determining the winner: "Paper covers rock",  "Rock breaks scissors",  "Scissors cut paper", or "It was a tie".  Be sure to allow the users to use lowercase as well as uppercase letters. Your program should include a loop that lets the user play again until the user says she or he is done.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 1TF: Mark the following statements as true or false: a. To use a predefined function in a program, you...
icon
Related questions
Question

C++ using multiple functions if possible.

Write a program to score the paper-rock-scissor game. For this game, the user will play against the computer, so have the computer selection use Random. 

The user types in either P, R, or S, (or 1, 2, or 3, depending on how you set it up).  Make sure to include error checking to help the user enter the correct data selections. 

The program then announces the winner as well as the basis for determining the winner: "Paper covers rock",  "Rock breaks scissors",  "Scissors cut paper", or "It was a tie". 

Be sure to allow the users to use lowercase as well as uppercase letters.

Your program should include a loop that lets the user play again until the user says she or he is done. 

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Types of Function
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning