Question: Develop a C program that allows two users to play Rock, Scissors, Paper. Users can type R, S, and P to represent Rock, Scissors, and

 Develop a C program that allows two users to play Rock,

Develop a C program that allows two users to play Rock, Scissors, Paper. Users can type R, S, and P to represent Rock, Scissors, and Paper, respectively. They can keep playing until one of them types -1. At the end of the game, the program will display the number of times player 1 and player 2 win and determine who the winner is or if there is no winner. Sample Output: Enter R/r - Rock, S/s-Scissors, p/p -Paper (N to stop): Player 1 : R Player 2 : S Player 1 wins! Enter R/r - Rock, S/s-Scissors, P/p -Paper (N to stop): Player 1 :p Player 2 : s Player 2 wins! Enter R/r -Rock, S/s-Scissors, p/p -Paper (N to stop): Player 1 :e Player 2 : e Enter R/r -Rock, S/s-scissors, p/p -Paper (N to stop): Player 1 :n Player 2 :n Player 1 wins 1 times Player 2 wins 1 times There is no winner

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!