Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# please C# please Background: In this lat. you are going to draw some scl Art using a two dimensional atay. When dealing with mul

image text in transcribed
C# please
C# please
Background: In this lat. you are going to draw some scl Art using a two dimensional atay. When dealing with mul dimensional arrays, you'll typically use nested loop a loop within a loop). The outer loop typically eates over the rows of the array, while the innerloop typically rates over the columns A two dimensional array uses the indexes. The first index represents the row rumberwhile the second index represents the column. For example: mayo refers to the first row and the second column (1) Your Tasks: 1) Open your IDE and start a new project 2) Copy and paste the appropriate version of the make_forward) method from page 3 below. This method creates and returns a two dimensional antay of characters with some Art in 3) in your main method, create a two dimensional array of characters with rows and 13 columns 4) Call the make_forward) method and store the result in your new array 5) Using loops print out the array contents character by character. You should see Al Art 6) Write a new method called male_mimor). It should take a two dimensional array as a parameter and retum a mirrored version of that 2D array Le. The contents of each row should De reversed as follows a) Input array cell should be copied to cell 012 in the retum array, likewise 1) should be copied to col 011..cello 12 should be copied to colo b) Cell will be copied to cell 0121 cell 1814 should be copied to call 911 c) The same is true for the other two rows d) As you copy each character, check the table below to see the characters needs to be reversed. It the character is not in the table, copy it as normal, but in the table replace it with the Mirrored character. You will need soments for this Old Character Mirrored Character 3 backslash-above enter key (backslash-above enter key) Note: The backslash (has special meaning. It means to escape the next character that's typed. For example, if you want to set a variable to you would write char **** This is because quotes are used when specifying a character. If you wish to print or compare a backslash bell, you'll need to escape it, so you'll actually have to write. So, for example, to set a variable x to you'd write char. You'll need this when swapping forward ashes and backslashes. There are examples of escaping in the provided make_forward() method 7) in your main method, create another 21 array of characters of the same size (4x13) Call the make_minor) method, passing it the original array returned from the make_forward method Store the result in your new array 3) Print out the mirrored 2D array 9) Finally, in your main method, print the forward and mentored image on the same ines, so that they face each other as having a head on collision see below Expected Results: If you complete the tab conectly, you should see Background: In this lat. you are going to draw some scl Art using a two dimensional atay. When dealing with mul dimensional arrays, you'll typically use nested loop a loop within a loop). The outer loop typically eates over the rows of the array, while the innerloop typically rates over the columns A two dimensional array uses the indexes. The first index represents the row rumberwhile the second index represents the column. For example: mayo refers to the first row and the second column (1) Your Tasks: 1) Open your IDE and start a new project 2) Copy and paste the appropriate version of the make_forward) method from page 3 below. This method creates and returns a two dimensional antay of characters with some Art in 3) in your main method, create a two dimensional array of characters with rows and 13 columns 4) Call the make_forward) method and store the result in your new array 5) Using loops print out the array contents character by character. You should see Al Art 6) Write a new method called male_mimor). It should take a two dimensional array as a parameter and retum a mirrored version of that 2D array Le. The contents of each row should De reversed as follows a) Input array cell should be copied to cell 012 in the retum array, likewise 1) should be copied to col 011..cello 12 should be copied to colo b) Cell will be copied to cell 0121 cell 1814 should be copied to call 911 c) The same is true for the other two rows d) As you copy each character, check the table below to see the characters needs to be reversed. It the character is not in the table, copy it as normal, but in the table replace it with the Mirrored character. You will need soments for this Old Character Mirrored Character 3 backslash-above enter key (backslash-above enter key) Note: The backslash (has special meaning. It means to escape the next character that's typed. For example, if you want to set a variable to you would write char **** This is because quotes are used when specifying a character. If you wish to print or compare a backslash bell, you'll need to escape it, so you'll actually have to write. So, for example, to set a variable x to you'd write char. You'll need this when swapping forward ashes and backslashes. There are examples of escaping in the provided make_forward() method 7) in your main method, create another 21 array of characters of the same size (4x13) Call the make_minor) method, passing it the original array returned from the make_forward method Store the result in your new array 3) Print out the mirrored 2D array 9) Finally, in your main method, print the forward and mentored image on the same ines, so that they face each other as having a head on collision see below Expected Results: If you complete the tab conectly, you should see

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_2

Step: 3

blur-text-image_3

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 Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions