subject

1. first the program should call a function named getcomputerchoice to get the computer's choice in the game. the getcomputerchoice function should generate a random number between 1 and 3. if the random number is 1 the computer has chosen rock, if the random number is 2 the user has chosen paper, and if the random number is 3 the computer has chosen scissors. (hint: return an int from this function and make the function have no arguments). this function is required to be a value returning function (do not make a void function).

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:00
Which of the following kinds of programs displays an online advertisement in a banner or pop-up window on webpages, email, or other internet service? e
Answers: 2
question
Computers and Technology, 23.06.2019 18:50
Ais a picture icon that is a direct link to a file or folder
Answers: 1
question
Computers and Technology, 24.06.2019 23:00
What is a current gdp and what is a real gdp?
Answers: 1
question
Computers and Technology, 25.06.2019 08:00
Is a major factor in the widespread use of global information systems
Answers: 1
You know the right answer?
1. first the program should call a function named getcomputerchoice to get the computer's choice in...
Questions
question
Chemistry, 09.12.2020 21:10
question
Mathematics, 09.12.2020 21:10
question
Mathematics, 09.12.2020 21:10