Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need c++ code for this assignment. Rock Paper Scissors game. I also need the pseudocode for this as well. (Rock, Paper, Scissors Game-Page 373) This

Need c++ code for this assignment. Rock Paper Scissors game. I also need the pseudocode for this as well. image text in transcribed
(Rock, Paper, Scissors Game-Page 373) This programming assignment is from the textbook with some slight modifications and clarifications Here is what I am going to except from you. Your program should include at least the following functions: getComputerGuess0: this function should return a random value generated by the computer using rand function (read more about random numbers in Chapter 3 pages 126 128) getUsersChoice): this function will ask the user to enter a choice using a menu. It then returns the user's selected choice Here is the menu: "1) Rock 2)Paper 3) Scissors 4) Quit" You should allow the game to keep playing until the user decides to quit, that's when the user chooses 4 from the menu. findTheWinner(int, int): this function has two parameters (one is the user's choice and the other one is the computer's randomly generated choice). Based on the passed arguments the function should display the user's choice, the computer's choice and the winner

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

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

1680833243, 978-1680833249

More Books

Students also viewed these Databases questions