subject
Computers and Technology, 26.11.2019 04:31 bri1623

Using c++chapter 6 - programming challenge 24 - rock paper scissors gamemake sure you use at least one function to make your code modular. rock, paper, scissors gamewrite a program that lets the user play the game of rock, paper, scissors against the computer. the program should work as follows.1. when the program begins, a random number in the range of 1 through 3 is generated. if the number is 1, then the computer has chosen rock. if the number is 2, then the computer has chosen paper. if the number is 3, then the computer has chosen scissors. (donât display the computerâs choice yet.)2. the user enters his or her choice of "rock", "paper", or "scissors" at the keyboard. (you can use a menu if you prefer.)3. the computerâs choice is displayed.4. a winner is selected according to the following rules: ⢠if one player chooses rock and the other player chooses scissors, then rock wins.(the rock smashes the scissors.)⢠if one player chooses scissors and the other player chooses paper, then scissorswins. (scissors cuts paper.)⢠if one player chooses paper and the other player chooses rock, then paper wins.(paper wraps rock.)⢠if both players make the same choice, the game must be played again to determinethe winner. be sure to divide the program into functions that perform each major task.

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 17:00, dylancasebere
In microsoft word, you can change the look of paragraphs by:
Answers: 1
image
Computers and Technology, 22.06.2019 11:30, stodd9503
Awell-diversified portfolio needs about 20-25 stocks from different categories is this true or false?
Answers: 2
image
Computers and Technology, 22.06.2019 18:30, cascyrio2002
What is outfitting a workplace with video in a technology
Answers: 2
image
Computers and Technology, 23.06.2019 14:00, LuvIsRage2
Technician a says that with self-adjusting clutch systems, the release bearing constantly rotates. technician b says that the ball bearing portion of the release bearing should be lubricated with high-temperature grease during routine maintenance. which technician is correct?
Answers: 2
You know the right answer?
Using c++chapter 6 - programming challenge 24 - rock paper scissors gamemake sure you use at least o...

Questions in other subjects:

Konu
History, 20.01.2021 21:10
Konu
History, 20.01.2021 21:10
Konu
Mathematics, 20.01.2021 21:10