Question: Write and test a C# method that can be used to determine the winner and increment either the user or the computer score for a

Write and test a C# method that can be used to determine the winner and increment either the user or the computer score for a round of Rock Paper Scissors. Please note that you are NOT being asked to write the entire Rock Paper Scissors game.

You can assume that you have the following GLOBAL constants: ROCK, PAPER, SCISSORS, USERWINNER, COMPUTERWINNER.

The method should be called DetermineWinner. It should take as parameters an integer that represents the user's move as well as an integer that represents the computer's move. Neither of these parameters will be changed by the method. It will take 2 additional parameters that may be edited by the method, an int that represents the user's score and another int that represents the computer's score. It will return an integer either USERWINNER or COMPUTERWINNER.

Show work for your method definition/ Input Processing Output (IPO) chart as well as your test code in Main

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!