Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Help #include #include #include #include using namespace std; int main() { string usr_name; string Rock; string Paper; string scissors; cout You will be constructing

C++ Help

image text in transcribed

#include #include #include #include

using namespace std; int main() { string usr_name; string Rock; string Paper; string scissors; cout

You will be constructing a rock-paper-scissor computer simulator. The simulator will begin by prompting the user for their name. The simulator will then prompt the user to choose either 'rock, "paper", or scissors" (as a string). Hint: The string will need to be converted into a comparable value. The simulator will then randomly choose rock, paper, or scissors. Finally, the simulator will compare the user choice and the random simulator choice, then it will display the winner. If the player wins output Winner: Player If the simulator wins output "Winner:Computer If the result is a draw the computer wins. Use a seed of 22 for the random generator. Note Make sure to use case rock, then paper, then scissors in your code The output of the simulator must include the format of the following example: (The simulator may include additional output but only the format below will be checked for grading) ONLY 4 submissions allowed * Be sure to develop your code fully before you attempt a submission usr_name selection: rock Computer selection: scissors Winner usr_name Note: usr name should be replaced with the user entered name and should not include any asterisks

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

Medical Image Databases

Authors: Stephen T.C. Wong

1st Edition

1461375398, 978-1461375395

More Books

Students also viewed these Databases questions

Question

9. Describe the characteristics of power.

Answered: 1 week ago

Question

3. Identify and describe nine cultural value orientations.

Answered: 1 week ago