Write a program to play the rock-paper-scissor game. Each of two users types in either P, R, or S. The program then announces the winner as well as the basis for determining the winner: paper covers rock, rock breaks scissors, scissors cuts paper, or nobody wins. Your program should allow the users to use lowercase as well as uppercase letters.

This project is a relatively simple program with a large number of if-else statements inside a loop.


See the code in RockPaperScissors.java.

Computer Science & Information Technology

You might also like to view...

Scaling reduces the width of a worksheet; it does not reduce the height

Indicate whether the statement is true or false

Computer Science & Information Technology

A ____ is two or more disks that are combined like a volume set, but that are striped for RAID level 0 or RAID level 5.

A. RAID set B. volume set C. partition set D. stripe set

Computer Science & Information Technology

Tax preparation software allows individuals to prepare their income taxes and file electronically (e-file) with the IRS.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

?Which technology below is not a hot-swappable technology?

A. ?USB-3 B. ?FireWire 1394A C. ?SATA D. ?IDE

Computer Science & Information Technology