Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

In C#

1. Write a method 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

image text in transcribed

2. Write a separate method that displays the 2D array on the console. You don't need to draw the grid - just draw the *'s.

3. Create the array in the main routine and pass it into the methods.

Put all of your code in a single text file (extension is .txt). If, as part of the assignment, you have been provided with some code, do not turn in this code unless youve made a change to the code. As easy way to do this is run Notepad, then copy from Visual Studio into Notepad. I will not grade zip files unless the assignment specifically ask for a zip file.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

More Books

Students also viewed these Databases questions

Question

What is the meaning and definition of E-Business?

Answered: 1 week ago

Question

Describe several uses for a position description.

Answered: 1 week ago