Question: Write a method in C# that draws a solid box (use *) inside a 2D array of chars. The method is passed the array, the

Write a method in C# that draws a solid box (use *) inside a 2D array of chars. The method is passed the array, the starting position of the box (top and left), and the size (width and height). Make sure the method does not go outside the 2D array. Example: 2D array of size 6 rows x 14 columns AddBox(array, 4, 2, 3, 3) at (4,2) size 3 x 3 Create the array in the main routine and pass it into the methods.Write a separate method that displays the 2D array on the console. You don't need to draw the grid - just draw the *'s.

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!