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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:40, lizzlegnz999
Respecting individual differencespre-test active2time remaining48: 47nina is exploring her gender identity and sexual orientationwhich best describes how the role of the media might influence nina during this time in her life? the media would her decide because television shows are always unbiased about gender issues and do notstereotypethe media could make things difficult for her because television sometimes portrays rigid ideas about gender roles. all forms of media will her decide because the media always portrays rigid ideas about gender roles. all forms of media will make things easy for her because the media always portrays open and fair ideas about gender roles.
Answers: 1
image
Computers and Technology, 22.06.2019 09:50, shadow29916
What is a rush associated with alcohol?
Answers: 1
image
Computers and Technology, 23.06.2019 02:50, CrusaderLord
Define a class named movie. include private fields for the title, year, and name of the director. include three public functions withprototypes void movie: : settitle(cstring); , voidmovie: : setyear(int); , void movie: : setdirector(string); . includeanother function that displays all the information about a movie. write a main() function that declares a movie object namedmyfavoritemovie. set and display the object's fields. this is what i have but know its wrong since it will notcompile: #include#includeusing namespace std; //class declarationclass movie{private: string movietitle ; string movieyear; string directorname; public: void settitle(string title); void setyear(string year); void setdirector(string director); void displayinfo(); }; //class implementationvoid movie: : settitle(string title){ movietitle = title; cout< < "what is the title of themovie? "< > temp; myfavoritemovie. settitle(temp); cout< < "enter movie year"< > temp; myfavoritemovie. setyear(temp); cout< < "enter director'sname"< > temp; myfavoritemovie. setdirector(temp); //display all the data myfavoritemovie. displayinfo(); system("pause"); return 0; this code is not entirely mine someone on cramster edited my firstcode but then i try manipulating the new code and i still get acompile error message : \documents\visual studio 2008\projects\movie\movie\movie. cpp(46) : error c2679: binary '< < ' : no operator found which takes aright-hand operand of type 'std: : string' (or there is no acceptableconversion)c: \program files (x86)\microsoft visual studio9.0\vc\include\ostream(653): could be'std: : basic_ostream< _elem,_traits> & std: : operator< < > (std: : basic_ostream< _elem,_traits> & ,const char *)w
Answers: 1
image
Computers and Technology, 23.06.2019 07:00, MissSmartyPants88
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
Answers: 1
You know the right answer?
Write function playGame to do the following a. Return type void b. Empty parameter list c. Declare v...

Questions in other subjects: