Write a program that will play rock, paper, scissors….

$25.00

Category: You will Instantly receive a download link for .zip solution file upon Payment || To Order Original Work Click Custom Order?

Description

5/5 - (2 votes)

Your non-programmer friends have challenged your Java programming skills, and you are going to prove them wrong. Write a program that will play rock, paper, scissors against them, but since we are annoyed at this challenge, write it in such a way that it can never lose. However, it must be able to tie so that they dont get TOO suspicious. In your main, ask the user to enter their choice – rock, paper or scissors. Write a method that given the user’s choice, generates and returns the computer’s choice. It should randomly pick the winning choice or tie the user’s choice. As your output, show both the user’s and the computer’s choice and declare the winner or the tie. Keep asking the user if they want to play until they give up and you have claimed your superiority.