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

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:00
Which function key is used to enable the spelling & grammar function in a word processing program such as microsoft word?
Answers: 3
question
Computers and Technology, 21.06.2019 21:00
You turn your computer on and the computer will not boot up where is something you should do to diagnose the problem?
Answers: 1
question
Computers and Technology, 22.06.2019 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 22.06.2019 14:40
You are working with a professional edition organization. they wish to install the expense tracker which requires the use of 4 custom tabs, 3 custom objects, and one custom app. if the company is already using 4 applications, 36 custom objects, and 7 custom tabs, what will happen when they try to install expense tracker?
Answers: 1
You know the right answer?
Using c++chapter 6 - programming challenge 24 - rock paper scissors gamemake sure you use at least o...
Questions
question
History, 22.08.2019 17:30
Questions on the website: 13722360