Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hello everyone i created this table html table and used javascript to get the total but now i need to get the average, min and
Hello everyone i created this table html table and used javascript to get the total but now i need to get the average, min and max for each column. Down below i have the picture of the arrays that i need to use and below is the loop i created but i know i only get it the average for one array. I want to know how do i get the separate average for all the arrays.
2017 2018 Q2 Q3 Northeast 219 410 334 182 223 377 380 384 130 147 237 224 142 429 Connecticut Maine Massachusetts New Hampshire Rhode Island Vermont 226 294 378 293 484 288 144 208 489 186 184 422 438 402 466 457 363 299 123 403 421 437 151 Midwest Illinois Indiana Michigan Ohio Wisconsin 476 295 257 470 322 395 396 407 474 183 198 438 123 147 121 397 250 458 291 461 South Delaware 396 270 203 290 321 283 140 266 480 478 167 288 281 286 Georgia 286 232 359 421 383 461 459 221 North Carolina South Coralina Virginia 179 408 385 296 402 Arizona Colorado 209 477 291 297 374 101 397 406 129 489 438 460 125 Montana Nevada Utah Wyoming 155 484 202 7647 306 289 208 128 334 7971 203 7309 497 6959 371 342 7331 Total 6632 6097 5486 476 458 var c1 =[363, 422, 152, 466, 219, 437, 171, 284, 377, 59, 250, 304, 411, 167, 288, 325, 67, 249, 231, 250, 416, 355, 61, 116, 1921 var C2 =[142, 342, 409, 457, 363, 299, 476, 295, 257, 470, 419, 396, 370, 281, 286, 177, 357, 296, 384, 359, 374, 101, 246, 81, 334] var C3 = [429, 313, 320, 123, 403, 421, 407, 474, 431, 147, 37, 151, 126, 194, 328, 179, 408, 457, 402, 470, 489, 97, 155,484, 202]i var C4 = [142, 438, 402, 216, 111, 151, 257, 95, 246, 211, 458, 226, 143, 286, 144, 221, 112, 165, 291, 179, 397, 406, 129, 449, 222] var C5 = [310, 226, 294, 378, 293, 484, 322, 395, 396, 304, 291, 270, 62, 347, 461, 278, 118, 414, 297, 193, 274, 460, 125, 114, 2031 var C6 = [288, 144, 208, 489, 186, 184, 222, 106, 99, 121, 45, 203, 86, 126, 459, 112, 385, 144, 209, 477, 424, 71, 289, 208, 201] var C7 = [219, 410, 334, 182, 223, 377, 183, 198, 56, 397, 76, 304, 321, 283, 140, 266, 480, 478, 421, 220, 222, 417, 128, 127, 497]; var C8 = [380, 384, 130, 147, 237, 224, 438, 252, 123, 324, 461, 45, 290, 187, 232, 359, 421, 383, 197, 494, 438, 137, 335, 371, 342]; var total -0 for (var i = 0; 1 c1.Length; 1++){ total C1 ij; var avgtotal / Ci.lengthiStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started