Question: In C++! A real program would also need/want some other functions (checking diagonal fit, placing words vertically, etc...). We are just are focusing on an

In C++!In C++! A real program would also need/want some other functions (checking

A real program would also need/want some other functions (checking diagonal fit, placing words vertically, etc...). We are just are focusing on an interesting subset of likely functions. void printKey(const char grid[ROWS][COLS]) Print out the current puzzle grid in a format like that shown below: A 1 E 1 RO GR AM D 12 void printPuzzle(const char grid[ROWS][COLS]) Print out the current puzzle grid, but where there are empty spaces, print random characters. This should NOT actually modify the puzzle grid - the random characters are just shown in the output. HB GOWRG X X I E YUASI JA W J A XD VABIN TH PROGRAM HA A KLVO BM FJ LW PMBOMOM V TO IZLVONA Z HD GYEDVOIDED X LDMN M N O P A STACK UV MJP MAB V V PLYTZ ETUH FOI X WG int countSpaces(const char grid[ROWS][COLS]) Returns out how many blank spaces there are in the current puzzle. bool checkHorizontalFit(const char grid[ROWS][COLUMNS], int startRow, int startCol, const string& word) Returns true if the given word can fit horizontally in the indicated starting row and column. To'fit' a word needs to not extend past the last column AND all the letters in the word need to not conflict with existing words in the grid. This should NOT actually change the grid. Example: given this starting grid

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!