subject

Write 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 is ranged 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 key-board. (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 scissors wins. (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 determine the winner. 5. be sure and use a looping structure so that the game can be played multiple times. keep track of number of wins by player and computer so you can display that as the games progress

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:00
This program will store roster and rating information for a soccer team. coaches rate players during tryouts to ensure a balanced team. (1) prompt the user to input five pairs of numbers: a player's jersey number (0 - 99) and the player's rating (1 - 9). store the jersey numbers in one int vector and the ratings in another int vector. output these vectors (i.e., output the roster). (3 pts) ex: enter player 1's jersey number: 84 enter player 1's rating: 7 enter player 2's jersey number: 23 enter player 2's rating: 4 enter player 3's jersey number: 4 enter player 3's rating: 5 enter player 4's jersey number: 30 enter player 4's rating: 2
Answers: 1
question
Computers and Technology, 22.06.2019 08:30
On the loan worksheet in cell c9 enter pmt function to calculate the monthly payment for the altamonte springs 2018 facilities loan. ensure that the function returns a positive value and set the reference to cells b5 and b6 as absolute references.
Answers: 2
question
Computers and Technology, 22.06.2019 19:30
Once the data center routes to the destination server that hosts the website, what's the next step in the internet process? user’s browser renders html code from destination server into web page request goes through router/model and isp request routed to nameserver and datacenter
Answers: 2
question
Computers and Technology, 23.06.2019 23:00
Lucas put a lot of thought into the design for his company's new white paper. he made sure to include repeating design elements such as color schemes and decorative images. his goal was to a.add symmetry b.create a unified publication c.provide consistency d.save money
Answers: 1
You know the right answer?
Write a program that lets the user play the game of rock, paper, scissors against the computer. the...
Questions
question
Mathematics, 29.01.2020 13:58
Questions on the website: 13722363