Question: Page number 1 CS 2 1 1 - ProjectProject, Total 1 0 0 pointsSubmission: This is a group assignment. Form a group of ( 2
Page number
CS ProjectProject, Total pointsSubmission: This is a group assignment. Form a group of to students and create a single solution file. Every student will submit the same copy as the rest of their group members. Include the name and WSUID of all your group members at the beginning of the file Modify the C and header files attached in the program and write the code for the followingfunctions:a Move board up : moveupint board int numrowsb Move board down : movedownint board int numrowsc Move board left : moveleftint board int numrowsd Move board right : moverightint board int numrowsAPPENDIX:main.cpp#include #include helper.husing namespace std;int mainint size ;int board;while getch x loop for up down left rightcout "Initial Board : x : endl;printboardboard;char choice u; initializedwhile choice ecout "Please enter choice:udlre for UP DOWN, LEFT, RIGHT, Exit: endl;cout "Choice: ;cin choice;
if choice umoveupboard size;else if choice dmovedownboard size;else if choice lmoveleftboard size;else if choice rmoverightboard size;insertrandomboard size;printboardboard;return ;helper.h#include #include #include using namespace std;void moveleftint board int numrows CODE HEREvoid moverightint board int numrows CODE HEREvoid moveupint board int numrows CODE HEREvoid movedownint board int numrows CODE HEREvoid printboardint board int numrows cout endl t endl;for int r ; r numrows; rfor int c ; c ; cifboardrc
cout t right setw setfillwhile truegenerate random location r cr rand numrows;c rand numrows;check if emptyif boardrcadd number randomly boardrcrand;break;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
