Lab9C: 2D or not 2D For this exercise you will also be writing a program that will be building upon Lab9A. So plea new class file, copy, and rename the code you have already written for Lab9A. Please...


Lab9C: 2D or not 2D<br>For this exercise you will also be writing a program that will be building upon Lab9A. So plea<br>new class file, copy, and rename the code you have already written for Lab9A. Please also<br>to rename the file and (and in the case of Java and C# students) class name to Lab9c<br>For this exercise, please take the array that was filled up with values and flatten it i.e., conve<br>array to a 1-D array that contains the same values. Please do not just print the 2-D array<br>a 1-D array<br>Hint: You will have to take the 2-D array's total amount of cells and make a 1-D array of the<br>Please refer to the sample output below for visualization and match its style.<br>As always:<br>Remember, the class name should be Lab9C.<br>The user input is indicated in bold.<br>Sample Output #1:<br>Please enter the number of rows: 4<br>Please enter the number of columns: 4<br>I have 4 rows and 4 columns. I need to fill-up 16 spaces.<br>The 4x4 array:<br>1|2|3|4|<br>5|6|7|8|<br>9|10|11|12|<br>13|14|15|16|<br>The 4x4 2-D array flattened into a 16 cell l-D array:<br>1|2|314|5|6|7| 8 | 9|10|11|12|13|14|15|16|<br>Sample Output #2:<br>Please enter the number of rows: 3<br>Please enter the number of columns: 2<br>I have 3 rows and 2 columns. I need to fill-up 6 spaces.<br>The 3x2 array:<br>1|2|<br>314||<br>5|6|<br>The 3x2 2-D array flattened into a 6 cell 1-D array:<br>1|2|3|4|5| 6|<br>

Extracted text: Lab9C: 2D or not 2D For this exercise you will also be writing a program that will be building upon Lab9A. So plea new class file, copy, and rename the code you have already written for Lab9A. Please also to rename the file and (and in the case of Java and C# students) class name to Lab9c For this exercise, please take the array that was filled up with values and flatten it i.e., conve array to a 1-D array that contains the same values. Please do not just print the 2-D array a 1-D array Hint: You will have to take the 2-D array's total amount of cells and make a 1-D array of the Please refer to the sample output below for visualization and match its style. As always: Remember, the class name should be Lab9C. The user input is indicated in bold. Sample Output #1: Please enter the number of rows: 4 Please enter the number of columns: 4 I have 4 rows and 4 columns. I need to fill-up 16 spaces. The 4x4 array: 1|2|3|4| 5|6|7|8| 9|10|11|12| 13|14|15|16| The 4x4 2-D array flattened into a 16 cell l-D array: 1|2|314|5|6|7| 8 | 9|10|11|12|13|14|15|16| Sample Output #2: Please enter the number of rows: 3 Please enter the number of columns: 2 I have 3 rows and 2 columns. I need to fill-up 6 spaces. The 3x2 array: 1|2| 314|| 5|6| The 3x2 2-D array flattened into a 6 cell 1-D array: 1|2|3|4|5| 6|

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here