Question: how to write this program in c++. please send me the code which I can copy and paste. Thank you. (where 1 paper, 2 scissor,

how to write this program in c++. please send me the code which I can copy and paste. Thank you.

how to write this program in c++. please send me the code

(where 1 paper, 2 scissor, and 3=rock). This input should player RPSUnt), and returns a string value between 1 and 3 o a string function called scissors, or rock (as mentioned above). Next, the returned string value, along with a generated input from the computer, should be passed into a void function called RPS comparisonlstring, string), and is the winner or if both n function srand (time (0) if (comp selection)0 l eise if (comp selection2) I int compselection - eise if (comp selection3) For those who are not accustomed to the Paper, Scissor, Rock game, paper beats rocks, scissor 1: Enter your choice (1spaper, Player 1 entered paper as the choice. Computer entered paper as the choice. Player entared scissor as the choice. mputer entared paper as the choice. PLAYER 1 WINS ter your choice (1paper Player 1 entered rock as the choice. Computer entered scissor as the choice

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!