Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem: Complete Programming Project 16from Chapter 7, on page 442 of your text

ID: 3614917 • Letter: P

Question

Problem: Complete Programming Project 16from Chapter 7, on page 442 of your textbook.

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 the problem

¨      comments as appropriate (referto the homework guidelines)

Part A: Write the C++ source code foryour program. (Make sure you follow the Guidelines forProgramming Projects posted on ANGEL.)   Attach yoursource code file to a submission in the drop box entitled“Homework 5 – Code” by 11:00 pm onThursday, November 19, 2009.

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); /* cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote