{"id":51078,"date":"2021-09-14T01:29:46","date_gmt":"2021-09-14T01:29:46","guid":{"rendered":"https:\/\/papersspot.com\/blog\/2021\/09\/14\/write-the-program-that-lets-the-user-play-the-game-of-rock-paper-and-scissors-against\/"},"modified":"2021-09-14T01:29:46","modified_gmt":"2021-09-14T01:29:46","slug":"write-the-program-that-lets-the-user-play-the-game-of-rock-paper-and-scissors-against","status":"publish","type":"post","link":"https:\/\/papersspot.com\/blog\/2021\/09\/14\/write-the-program-that-lets-the-user-play-the-game-of-rock-paper-and-scissors-against\/","title":{"rendered":"Write the program that lets the user play the game of rock , paper , and scissors against"},"content":{"rendered":"<p>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 ). .\u00a0-The user enters his or her choice of &#8220;rock&#8221;, &#8220;paper&#8221;, or &#8220;scissors&#8221; or quit the program at the keyboard .((You can use a menu if you prefer. 1 for &#8220;rock &#8220;,2 for &#8220;paper&#8221;,3 for &#8220;scissors&#8221;,4 for &#8220;quit&#8221; .)\u00a0&#8212; The computer&#8217;s choice is displayed.\u00a0&#8211; A winner is selected according to the following rules:\u00a0If one player chooses rock and the other player chooses scissors, then rock wins. (The rock smashes the scissors.)\u00a0If one player chooses scissors and the other player chooses paper, then scissors wins. (Scissors cuts paper.)\u00a0If one player chooses paper and the other player chooses rock, then paper wins. (Paper wraps rock.)\u00a0If both players make the same choice, the game must be played again to determine the winner.\u00a0&#8211; The program shall continue asking the user for a choise unitil the user enters 4 to Quit the game .\u00a0&#8211; the program should be divided into 4 main methods that perform each major task in addition to the main method.\u00a01- computerChoice method .\u00a02- userChoice method .\u00a03- determineWinner method.\u00a04- displayChoice method.\u00a0^Please help me &#8230;&#8230;..programming languag c \u00a0C plus plus <\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[20],"class_list":["post-51078","post","type-post","status-publish","format-standard","hentry","category-research-paper-writing","tag-programming"],"_links":{"self":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/51078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/comments?post=51078"}],"version-history":[{"count":0,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/51078\/revisions"}],"wp:attachment":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/media?parent=51078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/categories?post=51078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/tags?post=51078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}