Answer:
The solution code is written in Java.
Explanation:
A method getWinner() that take two parameters, user and computer, is written (Line 1 - 8). This method presumes that there is a global variable, status. This status variable holds the value that will decide if method should return either user or computer name as winner (Line 3, 5).
Line 10 shows a statement that implement the getWinner() method.