Goals: Developing problem-solving skills,declaring variables, using loops, and u
ID: 3614945 • Letter: G
Question
Goals: Developing problem-solving skills,declaring variables, using loops, and using 2-D arrays andfunctions.
Problem: Complete Programming Project 16from Chapter 7, on page 442 of your textbook. (shown below)
Your program should employ the following:
¨ as indicated in the problemdescription: 2 two-dimensional arrays, one for thearrangement, and one for the indicating if cards are face-up orface-down
¨ a function that shuffles cardsin order to create the initial setup for the memory game; thisshould use random number generation of some sort
¨ a function that displays thecurrent status of the game, as shown in the book
¨ cin statements to takecoordinates from the player
¨ any other 2-D arrays orfunctions that you find appropriate to use to solve theproblem.
-----------------------------------------------------------------------------
Theproject from textbook:
Explanation / Answer
please rate - thanks #include #include #include using namespace std; void shuffle(int[]); void arrangedeck(int[],int[][4],bool[][4],int &,int &,int&,int &); void print (bool[][4],int[][4]); void getplay(int &,int &,int &,int&,bool[][4],int[][4]); int get(string); int main() { inti,j,row1,row2,col1,col2,prow1,prow2,pcol1,pcol2,deck[16],arr[4][4],show=2; bool face[4][4]={false}; srand(time(0)); shuffle(deck); /* coutRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.