Sample Output #1: 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 sum of all the...


Sample Output #1:<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 sum of all the numbers in the 3x2 array: 21<br>The average of all the numbers in the 3x2 array: 3.5<br>Sample Output #2:<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 sum of all the numbers in the 4x4 array: 136<br>The average of all the numbers in the 4x4 array: 8.5<br>

Extracted text: Sample Output #1: 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 sum of all the numbers in the 3x2 array: 21 The average of all the numbers in the 3x2 array: 3.5 Sample Output #2: 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 sum of all the numbers in the 4x4 array: 136 The average of all the numbers in the 4x4 array: 8.5
Lab9B: Lab9A, but now with more math<br>For this exercise you will be writing a program that will be building upon the previous program. So please<br>make a new class file, copy, and rename the code you have already written for Lab9A. Please also<br>remember to rename the file and (and in the case of Java and C# students) class name to<br>Lab9B.<br>For this exercise, please calculate two values from all of the numbers in the two dimensional array. The first<br>value should be the sum of all numbers in the array. This should be stored in a separate

Extracted text: Lab9B: Lab9A, but now with more math For this exercise you will be writing a program that will be building upon the previous program. So please make a new class file, copy, and rename the code you have already written for Lab9A. Please also remember to rename the file and (and in the case of Java and C# students) class name to Lab9B. For this exercise, please calculate two values from all of the numbers in the two dimensional array. The first value should be the sum of all numbers in the array. This should be stored in a separate "int" variable that is created outside the nested FOR loops. The second value should be the total average of all numbers in the Array. This should be stored in a separate "float" variable, also outside the nested FOR loop structure. So, in short: • Display the sum of the values in the array • Then display the average of the values in the array Please refer to the sample output below for visualization and match its style. As always: Remember, the class name should be Lab9B. The user input is indicated in bold.
Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here