Please complete the following function printBox, which accepts three parameters (i.e., char c, int length, int width), and must print a box (using the char c received) of length by width. For example, the output of printBox('&', 4, 6) ; will be as follows: &&&&&& &&&&&& &&&&&& &&&&&& void printBox(char c, int length, int width) // parameter 1: char c ( '&' for example) the char for the box // parameter 2: int length ( 4 for example) like # of rows // parameter 3: int width ( 6 for example) like # of columns // Example: c = '&' ; length = 4 ; width = 6 ; { // begin printBox( ) :::::::: Enter your code here:::::::::::::::::::: } // end printBox( ) void main( ) // To test function printBox( ) { printBox( '&', 4 , 6 ) ; } // end main( ) The output of the above program should be as follows: &&&&&& &&&&&& &&&&&& &&&&&&
I have most of the code done just need help in that one area that says ":::::: Need help here". Thank you!
Please complete the following function printBox, which accepts three parameters (i.e., char c, int length, int width), and must print a box (using the char c received) of length by width.
For example, the output of printBox('&', 4, 6) ;
will be as follows:
&&&&&&
&&&&&&
&&&&&&
&&&&&&
void printBox(char c, int length, int width)
// parameter 1: char c ( '&' for example) the char for the box
// parameter 2: int length ( 4 for example) like # of rows
// parameter 3: int width ( 6 for example) like # of columns
// Example: c = '&' ; length = 4 ; width = 6 ;
{ // begin printBox( )
:::::::: Enter your code here::::::::::::::::::::
} // end printBox( )
void main( ) // To test function printBox( )
{ printBox( '&', 4 , 6 ) ;
} // end main( )
The output of the above program should be as follows:
&&&&&&
&&&&&&
&&&&&&
&&&&&&

Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images









