Home / Expert Answers / Computer Science / 1-create-a-java-program-that-will-play-rocks-papers-scissors-with-the-user-the-user-will-pa177

(Solved): 1. Create a JAVA program that will play rocks, papers, scissors, with the user. The user will ...



1. Create a JAVA program that will play “rocks, papers, scissors,” with the user. The user will input a string, like “rock”, and the computer will compare it to the one it randomly chose. It should display the winner and keep track of the score. There should be a cheat code, like “tnt” that will beat the computer every time. The user input should be checked to make sure it is valid. If not, the user should be prompted to reenter.
2. Use 2 nested for loops and if statements to create the following star patterns (DO NOT just output the pattern.). The outer for loop runs the “rows” the inner for loop runs the “columns”. Make the loop go from 0 to 9 and use the if to decide whether to show a * or “ “.
**********
*********
********
*******
******
*****
**** *** **
*
* ********** ** ********* *** ******** **** ******* ***** ****** ****** ***** ******* **** ******** *** ********* ** ********** *
    *
   ***
  *****
 *******
*********
*********
 *******
  *****
   ***
    *
3. Create a “which way” story. A “which way” story allows the user to make decisions that will affect the outcome of the story. Your story should start out with a few lines telling the user the beginning of a story. At some point the user should get to choose which path they want the character to take. This path should lead to another part of the story along with another choice. The story should have 10 possible sections to travel to. (You really should write out the story and the flow before you start coding. If you don’t, you are going to get lost with the “if” statements and loops.... PLAN IT OUT)



We have an Answer from Expert

View Expert Answer

Expert Answer


Here is the fully implemented class. All ToDo questions has been implemented inside the methods. Let me know for any questions or help. Thank You ====
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe