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, 22.06.2019 13:00
Why the bear has a slunky tail determine the meaning of the word slunk in the story
Answers: 1
question
Computers and Technology, 23.06.2019 06:40
How many nibbles can be stored in a 16-bit word?
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. what does it indicate when a website displays https instead of http? a. the website is secure. b. there is no secure sockets layer. c. the secure sockets layer is hidden. d. the website is not secure.
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
Mathematics, 11.06.2021 20:30
question
Biology, 11.06.2021 20:30
question
Mathematics, 11.06.2021 20:30
Questions on the website: 13722360