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 04:40
The narrative structure of the popular movies can be broken down into
Answers: 3
question
Computers and Technology, 23.06.2019 15:00
In the blank libreoffice writer document, to start the process of entering a date field into a letter, click on the insert menu. edit menu. file menu. fields menu.
Answers: 3
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 08:50
Write a program that will compute the volume of ice cream served in a cone. as you can see in the diagram below, the ice cream is served as a hemisphere of frozen deliciousness on top of a cone, which is also packed with frozen deliciousness. thus, the total volume of ice cream sold is the volume of the hemisphere plus the volume of the cone. the example shows an ice cream cone in which the hemisphere and cone have a radius of 10 inches and the cone has a height of 15 inches. your program must instead prompt for these two values, which are taken from the keyboard as integers: • the hemisphere/cone radius in inches, and
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
Health, 04.11.2020 09:50
question
Chemistry, 04.11.2020 09:50