Write the program that lets the user play the game of rock , paper , and scissors against

Sigchi4life
Category:
Programming
Price: $15 USD

Question description

Write the program that lets the user play the game of rock , paper , and scissors against the comput

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 .(dont display the computers choice yet ). . 

-The user enters his or her choice of "rock", "paper", or "scissors" or quit the program at the keyboard .((You can use a menu if you prefer. 1 for "rock ",2 for "paper",3 for "scissors",4 for "quit" .) 

-- The computer's choice is displayed. 
- 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. 

- The program shall continue asking the user for a choise unitil the user enters 4 to Quit the game . 

- the program should be divided into 4 main methods that perform each major task in addition to the main method. 
1- computerChoice method . 
2- userChoice method . 
3- determineWinner method. 
4- displayChoice method. 


^Please help me ........
programming languag c++ 
C plus plus


Tutor Answer

(Top Tutor) Daniel C.
(997)
School: Cornell University
PREMIUM TUTOR
Studypool has helped 1,244,100 students
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1824 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors