Zebra0.com

MCJava program: Rock, Paper, Scissors

Java program: Rock, Paper, Scissors

Rock, paper scissors is a well known game in the United States. Two players count 1, 2, 3, then each throw down one hand as a rock (closed fist), paper (all fingers out), or scissors (two finders out).

The winner is as follows:

Your program will do the following:

  1. Ask the user to pick rock, paper or scissors.
  2. The program will randomly pick rock, paper, or scissors.
  3. The program will tell the user what the computer picked.
  4. The program will announce the winner or tie.

You can test the program by using an assigned value for the computer choice, but the final program should use a random choice for the computer.

Please submit one Word document that includes the source code, at least 3 screen shots of the output showing each choice for the user, and a truth table showing all possible combinations and the result.

In addition please submit the Java file that you can find in the src folder of the project.

Check list

Grading Rubric

Rubric Points
Program works correctly, no errors 5
Comments, good names, indented 1
Truth table 2
Word document and Java File 1
Screen shots show good test data 1

 

Standards

If you do not receive a perfect score you may resubmit it as long as it is resubmitted within 3 days.
Assignment Index

This web site, and all pages therein, are the sole property and responsibility of Zebra0.com.
It is not endorsed, sponsored, or provided by or on behalf of Montgomery College.