Answered step by step
Verified Expert Solution
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
#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 asterisksStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started