Description: Write a program to play "Rock, Paper, Scissors, Lizard, Spock." A user will enter a character to represent

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Description: Write a program to play "Rock, Paper, Scissors, Lizard, Spock." A user will enter a character to represent

Post by answerhappygod »

Description Write A Program To Play Rock Paper Scissors Lizard Spock A User Will Enter A Character To Represent 1
Description Write A Program To Play Rock Paper Scissors Lizard Spock A User Will Enter A Character To Represent 1 (132.09 KiB) Viewed 54 times
Please do all steps shown thank you
Description: 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. Outline of solution: 1. Display your standard output information using a function named ShowProgramHeader () as on the previous assignments. 2. Prompt user for input (rock, paper, scissors, lizard, or Spock). 3. Get input from user (first player) - using a function. 4. Generate second player's object (get input from user for second player for initial testing) - using a function. 5. Decide and display outcome of the game - using a function. Deliverables: • Program-fully documented. Your final program should contain all test code used during development. • Output-test your program using the following input data: RS, p R. S p. p P, LP, K 1, K p, s k Hint: do this before implementing the computer as player 2. • 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply