Using switches and for loops Appropriate constants and enums. No literals, excep
ID: 3640169 • Letter: U
Question
Using switches and for loops
Appropriate constants and enums.
No literals, except to define a const or enum.
Write a Rock, Paper, Scissors simulator, asking the user for the number of games they want to play, play that number of games with the user, and print summary statistics for the session.
Should display the strategy the user picks, and the strategy the computer is playing, before announcing the result of the game.
Simulation must be able to randomly choose a strategy (one of the three plays).
Summary of statistics should include:
• Number of wins per side
• Number of ties
• Number of wins per strategy
Explanation / Answer
#include using namespace std; int main() { char a,b; coutRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.