Question: Write a small program that will let the user play rock-paper-scissors game against the computer. As you may know, rock beats scissors, scissors beat

Write a small program that will let the user play rock-paper-scissors game

 

Write a small program that will let the user play rock-paper-scissors game against the computer. As you may know, rock beats scissors, scissors beat paper, and paper beats rock. Declare 2 variables that will keep the scores of the user and the computer as "Your_score" and "Pc_score" respectively. Depending on the choices of the players, these variables must be incremented by 1 point or remain the same. To be more clear you can use the table below to decide which one to increment. You can declare more variables if you think it is necessary. You Rock Rock Rock Paper Paper Paper Scissors Scissors Scissors Computer Rock Paper Scissors Rock Paper Scissors Rock Paper Scissors Your_score Your_score Your_score Your_score+1 Your_score+1 Your_score Your_score Your_score Your_score+1 Your_score Pc_score Pc_score Pc_score+1 Pc_score Pc_score Pc_score Pc_score+1 Pc_score+1 Pc_score Pc_score Activate Windows

Step by Step Solution

3.41 Rating (164 Votes )

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 General Management Questions!