Lab Goal: practice problem-solving, pseudo code, if statements

You want create the Rock, Paper, Scissors game. Allow the user to play against the computer. The user should enter their choice (R,P, or S) and the computer's selection will be radomly determined. Print the computer's choice and the user's chioce in providing the winner. Be sure to account for ties and handle invalid user input.

 

Requirements

  1. Write your pseudocode to solve the problem in the comments at the top of the program.
  2. Use variables appropriatey in your program. 
  3. Have a print statement that provides pertinent information: computer and user input and the results.
  4. Use debugging techniques as/if you experience errors.
  5. Test with (R), (P), (S) twice.  That is 6 tests.
  6. When complete, submit by email the .java file  and a cropped screen shot of your results.

Complete the zyBooks challenge.

Grading

Actual

Possible

Expectation

 

15

PseudoCode

 

20

Compiles and runs

 

40

Correct answers

 

10

Prints computer choice

 

15

Code Comments