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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started