Question: Write a program to play Rock, Paper, Scissors, Lizard, Spock. A user will enter a character to represent one of the five items. The program

 Write a program to play "Rock, Paper, Scissors, Lizard, Spock." A

Write a program to play "Rock, Paper, Scissors, Lizard, Spock." A user will enter a character to represent one of the five items. The program will randomly select one of the five items. Once these two objects have been determined, the program will decide who wins: Rock beats Scissors Paper beats Rock Scissors beats Paper See http: //www.samkass.com/theories/RPSSL.html for additional rules. Display your standard output information using a function named ShowProgramHeader() as on the previous assignments. Prompt user for input (rock, paper, scissors, lizard, or Spock). Get input from user (first player). Generate second player's object (get input from user for second player for initial testing). Decide and display outcome of the game. Program-fully documented. Your final program should contain all test code used during development. Output-test your program using the following input data: R P, p R, S p, p P, L K, p l, K p, s k Output-at least five games using the computer as player 2. Sample calculation sheet-In addition to your program and output, attach a page showing your sample calculations. Check your results using your sample calculations. If you have any questions regarding this assignment, do not hesitate to contact me. Start working on this assignment as soon as possible, so that you have plenty of time to get help if you need it

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!