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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 03:00, Emanuelle7843
Which action describes an aspect of technological design?
Answers: 1
image
Computers and Technology, 22.06.2019 17:00, Janznznz1121
Your computer running windows 10 is doing some very strange things with the operating system. you are fairly certain it is not a hardware issue. you need to try to get further insight into what is going on within the operating system. which tool would be best suited for this?
Answers: 2
image
Computers and Technology, 23.06.2019 02:00, magicalunicorns47
Arecipients list has been loaded into a document. which commands should be clicked in order to filter the list so that letters will not be printed for recipients who live in a certain state? mailings tab, start mail merge, select recipients, type new list, then insert only contacts from the desired states mailings tab, rules, select recipients, use existing list, then choose a recipients list that includes only contacts in certain states mailings tab, select recipients, use existing list, rules, fill in, then type in certain states mailings tab, rules, skip record select “state” under field name, then type in the state name under “equal to”
Answers: 2
image
Computers and Technology, 23.06.2019 14:30, qveenvslayin
The basic work area of the computer is it screen that you when you first fire up your computer
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 in other subjects:

Konu
Mathematics, 28.08.2019 00:30
Konu
Mathematics, 28.08.2019 00:30
Konu
English, 28.08.2019 00:30