subject

The client wants you to write a rock-paper-scissors game that can be played with the computer. A game of rock-paper-scissors consists of three rounds. A player is declared the winner if they win 2 of the 3 rounds. The computer plays by generating a random number from 0-3 where 0 is rock, 1 is paper, and 2 is scissors. For each round, the program should prompt the user for their choice and print out the winner of the round. At the end of the three rounds, the program should print out how many rounds the player and the computer won, and indicate who the winner of the game is.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:20
Geneva’s manager would like to see some additional information to make sales decisions.enter a formula in cell j4 using the if function to it whether or not the item beaded earrings should go on sale. it will go on sale if its current sales rank (in cell g4) is 8th or lower. (hint: if the cell value is greater than or equal to 8, it will go on sale.)if this condition is true, the item will go on sale. (hint: the if_true value should be “yes”.)if this condition is false, the item doesn’t need to go on sale. (hint: the if_false value should be “-”.)copy the formula created in cell j4 to the range j5: j14
Answers: 2
question
Computers and Technology, 22.06.2019 10:30
You are almost finished updating a web site. as part of the update, you have converted all pages from html 4.0 to html5. the project is currently on schedule. however, your project manager has been asked by the marketing team manager to justify a day of time spent validating the site's html5 pages. the marketing team manager does not have technical knowledge of the internet or the web. which is the most appropriate explanation to provide to the marketing team manager?
Answers: 1
question
Computers and Technology, 23.06.2019 23:40
4. what is the reason for including the following code snippet in the header file animal.h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
question
Computers and Technology, 24.06.2019 09:30
What is the definition of digital literacy?
Answers: 1
You know the right answer?
The client wants you to write a rock-paper-scissors game that can be played with the computer. A gam...
Questions
question
Chemistry, 30.07.2021 08:30
question
Mathematics, 30.07.2021 08:30
question
English, 30.07.2021 08:30
question
Mathematics, 30.07.2021 08:30
Questions on the website: 13722363