Question: You will create a program that draws ASCII boxes. The user specifies the width and height of the box. At a minimum, the box has


You will create a program that draws ASCII boxes. The user specifies the width and height of the box. At a minimum, the box has to be two characters wide by two characters tall, as the width and height values include the borders! For example, the smallest box, a two by two box, looks like this: That is, just the four corners A corner is represented using a plus sign (+'). The top and bottom borders are drawn with a dash (-). The sides are dra A width 5, height 3 box looks like this: wn with a pipe () and a width 3, height 5 box looks like this: Open the file box.c. All of the variables that you need are declared in the first two lines of the main) function. The input portion is done for you, but you will have to complete the input validation that follows If the width or the height are below the minimum acceptable value, then the program should print an error message and exit. Complete the code to print out the top line, followed by a nested loop to print out the middle portion, and then lastly create the code necessary to print out the bottom edge of the box
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
