Computers and Technology

Write a program that plays the popular scissor-rockpaper game. (A scissor can cut a paper, a rock can knock a scissor, and a paper can wrap a rock.) The program randomly generates a number 0, 1, or 2 representing scissor, rock, and paper. The program prompts the user to enter a number 0, 1, or 2 and displays a message indicating whether the user or the computer wins, loses, or draws. Here are sample runs: scissor (0), rock (1), paper (2): 1
The computer is scissor. You are rock. You won
scissor (0), rock (1), paper (2): 2
The computer is paper. You are paper too. It is a draw

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 25.06.2019 02:00, doug26
What type of multimedia is a game cd? game cds are examples of multimedia
Answers: 1
image
Computers and Technology, 25.06.2019 10:30, jahnoibenjamin
Which of the following if statements uses a boolean condition to test: "if the item is on sale, you can buy it"? a: if( onsale < = "yes" ): b: if( onsale > = "yes" ): c: if( onsale == "yes" ): d: if( onsale ! = "yes" ):
Answers: 2
image
Computers and Technology, 25.06.2019 16:00, deku6
Which function would you use to make sure all names are prepared for a mailing label?
Answers: 2
image
Computers and Technology, 25.06.2019 16:00, eggyhz1980
What is the play area? a. the frame editor b. the area the player will see in the game screen c. the area right next to an active object d. the area that keeps track of events in a game
Answers: 1
Do you know the correct answer?
Write a program that plays the popular scissor-rockpaper game. (A scissor can cut a paper, a rock ca...

Questions in other subjects:

Konu
Mathematics, 07.11.2019 03:31
Konu
Mathematics, 07.11.2019 03:31