Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Become more familiar with C++ I/O and basic conditional operations. Write a program to play Rock, Paper, Scissors, Lizard, Spock. A user will enter a

image text in transcribed

Become more familiar with C++ I/O and basic conditional operations. 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. 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) 4. Generate second player's object (get input from user for second player for initial testing). 5. 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, Sp, p P, L K, pl, K p, sk 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Strategic Database Technology Management For The Year 2000

Authors: Alan Simon

1st Edition

155860264X, 978-1558602649

More Books

Students also viewed these Databases questions

Question

2. What do you believe is at the root of the problem?

Answered: 1 week ago