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, 23.06.2019 03:50
Iam a bacterium. i cause stomach cramps and diarrhea. i am caused by eating rotten foodssuch as chicken, fish, or eggs. sometimes turtles carry my bacteria.what am i?
Answers: 2
question
Computers and Technology, 23.06.2019 17:20
What is the best assassins creed game?
Answers: 2
question
Computers and Technology, 23.06.2019 22:00
Jackson, who works in the finance department of a company, is holding a seminar for other employees on how to file taxes. only three employees sign up to attend the seminar. which device can he use to share his presentation with a group of three employees?
Answers: 1
question
Computers and Technology, 24.06.2019 06:30
Adrawing that places all lines parallel to the z axis at an angle from the horizon is 99 ! a. an oblique drawing b. a perspective drawing c. an auxiliary view d. a one-point perspective drawing
Answers: 2
You know the right answer?
1. first the program should call a function named getcomputerchoice to get the computer's choice in...
Questions
question
Computers and Technology, 30.07.2020 18:01
Questions on the website: 13722363