subject

Write function playGame to do the following a. Return type void b. Empty parameter list c. Declare variable roll, data type int as a looping variable d. Declare variable turn, data type int as a looping variable e. Declarc array dice, size five, usc constant DICE, data type int to store the dice f. Declarc array keep, size five, usc constant DICE, data type int to store which dice the user wants to keep g. Write an outer for loup that does the following i. Starts at valuc zero B Focus LE English (United States + 140%) i. Starts at value zero ii. Loops thirteen times, use constant TURNS iii. Increments by one iv. Declare variable current, data type int, to display to the screen the current turn number, ensure the turn number starts at the value of one versus zero v. Calls function initializeDice to reset the dice for each turn, pass array dice as an argument vi. Write a nested for loop that does the following 1. Starts at value zero 2. Loops three times, use constant ROLLS 3. Increments by one 4. Calles function resetKeep to reset the selected dice the user wants to keep for each roll, pass array keep as an argument 5. Display to the screen text indicating the dice are being rolled 6. Call function rollDice to roll the dice, pass arguments array dice and array keep 7. Call function display Dice to display the rolled dice, pass array dice as an argument

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 15:30
The processing of data in a computer involves the interplay between its various hardware components.
Answers: 1
question
Computers and Technology, 24.06.2019 15:40
In the above figure, what type of cylinder arrangement is shown in the figure above? a. l-type b. v-type c. in-line d. horizontal pls make sure its right if its rong im grounded for 3months
Answers: 1
question
Computers and Technology, 24.06.2019 20:30
Where is permanent data in the computer stored whenever gym starts his laptop he sees some commands in numbers appearing on the screen these instructions are being preceded by the control unit in
Answers: 1
question
Computers and Technology, 25.06.2019 08:40
Anyone took cgs 1060 and took exam for simnet, slide 50 question on 1st exam.
Answers: 3
You know the right answer?
Write function playGame to do the following a. Return type void b. Empty parameter list c. Declare v...
Questions
question
Biology, 17.12.2019 21:31
question
Mathematics, 17.12.2019 21:31
question
History, 17.12.2019 21:31
question
English, 17.12.2019 21:31
Questions on the website: 13722363