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.
You might also like to view...
A technician has completed the installation and configuration of a third email server. The technician has configured the firewall to permit email traffic, but the mail is only being received by the two older servers. Which of the following should the technician configure to ensure incoming email will be processed by all three servers?
A. Enable NTP to ensure all three servers are synchronized. B. Configure IMAP on the new mail server. C. Add the DNS server option in DHCP. D. Update the MX record in DNS.
The binary search
a. Starts with the first element of an array and searches each element until the correct one is found. b. Starts with the middle element and tests to see if the number is larger or smaller that that element and continues in the same manner until the element is found. c. Does not have to have the array in order. d. Is another name for a sequential search.