Ask Question

Program Rock. java contains a skeleton for the game Rock, Paper, Scissors. Open it and save it to your directory. Add statements to the program as indicated by the comments so that the program asks the user to enter a play, generates a random play for the computer, compares them and announces the winner (and why). For example, one run of your program might look like this: $ java Rock Enter your play: R, P, or S r Computer play is S Rock crushes scissors, you win! Note that the user should be able to enter either upper or lower case r, p, and s. The user's play is stored as a string to make it easy to convert whatever is entered to upper case. Use a switch statement to convert the randomly generated integer for the computer's play to a string.

+4
Answers (1)
  1. 28 December, 07:53
    0
    Clarification

    Explanation:

    Are you asking us to do your program for you? Or do you have a specific question about coding not working?
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Program Rock. java contains a skeleton for the game Rock, Paper, Scissors. Open it and save it to your directory. Add statements to the ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers