Question: Need help with this c++ template/shell. Needs to be finished. Using c++ and visual studios 2017. I will add the lab description and the template
Need help with this c++ template/shell. Needs to be finished. Using c++ and visual studios 2017. I will add the lab description and the template below. Any help would be greatly appreciated. Thank you.

#includeusing namespace::std; const int NUM_ROWS = 10, // Board dimensions NUM_COLS = 20; // Function prototypes void fillRectangle ( char board[NUM_ROWS] [NUM_COLS] , int row, int col, int width, int height, char fillChar ); void displayBoard ( const char board[NUM_ROWS] [NUM_COLS] ); //-------------------------------------------------------------------- int main () { char board[NUM_ROWS][NUM_COLS]; // Message board // Initialize the message board to all periods. fillRectangle(board,0,0,NUM_COLS,NUM_ROWS,'.'); // Load and display a message. fillRectangle(board,2,2,6,2,'C'); fillRectangle(board,4,2,3,4,'C'); fillRectangle(board,6,5,3,2,'C'); fillRectangle(board,4,10,3,1,'#'); fillRectangle(board,3,16,1,3,'#'); fillRectangle(board,3,11,1,3,'#'); fillRectangle(board,4,15,3,1,'#'); cout In this exercise you will use a two-dimensional array of characters to represent a message board. For example, you carn display the message I C U" on a 5 x 11 message board as follows The function fillRectangle) flls in a specified rectangle on the message board with a given character void fillRectangle(char board[] [ NUM_COLS ], int row, int col, int width, int height, char fillChar) Input parameters row, col: row and column of the upper, left corner of the rectangle width, height: rectangle dimensions fillChar: character to fill the rectangle with Input/Output parameter board: (input) message board (output) updated message board, including specified rectangle The displayBoard() function displays the message board void displayBoard (const char boardil [NUM COLS1 Input parameter board: message boarg Outputs Displays the completed new message board The following calls fillRectangle(board, 0, 0, 11, 5, 1,'); fillReatangle(board, 1, 1, 1, 3, '1') produce part of the message board shown
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
