diff --git a/curriculum/challenges/_meta/learn-advanced-array-methods-by-building-a-statistics-calculator/meta.json b/curriculum/challenges/_meta/learn-advanced-array-methods-by-building-a-statistics-calculator/meta.json index 6c584c43673..80343b7559d 100644 --- a/curriculum/challenges/_meta/learn-advanced-array-methods-by-building-a-statistics-calculator/meta.json +++ b/curriculum/challenges/_meta/learn-advanced-array-methods-by-building-a-statistics-calculator/meta.json @@ -98,140 +98,152 @@ "title": "Step 21" }, { - "id": "635090f47eb6d9563a6fed05", + "id": "661890c4abae9f2a0eddad6b", "title": "Step 22" }, { - "id": "635091f8dbf554575fb5aa0c", + "id": "661899113600ef307d8a7487", "title": "Step 23" }, { - "id": "6352e79d15aae30fac58f48e", + "id": "6618a3264f955339063d3328", "title": "Step 24" }, { - "id": "6352e80e024e89111600edfb", + "id": "6618abf6368d073f0f659780", "title": "Step 25" }, { - "id": "6352e93db104661305c5f658", + "id": "635090f47eb6d9563a6fed05", "title": "Step 26" }, { - "id": "6352e96d2604f813c656750b", + "id": "6352e79d15aae30fac58f48e", "title": "Step 27" }, { - "id": "65aac0678d51b3f1a0cb8061", + "id": "6352e80e024e89111600edfb", "title": "Step 28" }, { - "id": "65c4dc57418fd6bfc710d61d", + "id": "6352e93db104661305c5f658", "title": "Step 29" }, { - "id": "65ca2d0625aa3a3201067f70", + "id": "6352e96d2604f813c656750b", "title": "Step 30" }, { - "id": "65e62efde0592ec4b4bb6a69", + "id": "65aac0678d51b3f1a0cb8061", "title": "Step 31" }, { - "id": "65f83a7ca7047318e3ccff7c", + "id": "65c4dc57418fd6bfc710d61d", "title": "Step 32" }, { - "id": "6352ea3a5b79e614ee2282fd", + "id": "65ca2d0625aa3a3201067f70", "title": "Step 33" }, { - "id": "6352ebd3ab962c168a122e85", + "id": "65e62efde0592ec4b4bb6a69", "title": "Step 34" }, { - "id": "6352ec8b9c70fd17b8c7ba3f", + "id": "65f83a7ca7047318e3ccff7c", "title": "Step 35" }, { - "id": "6352ecef9f045519063da9b3", + "id": "6352ea3a5b79e614ee2282fd", "title": "Step 36" }, { - "id": "6352edee8a4de01ad693f0e4", + "id": "6352ebd3ab962c168a122e85", "title": "Step 37" }, { - "id": "6352ee566a59d31d24bde74b", + "id": "6352ec8b9c70fd17b8c7ba3f", "title": "Step 38" }, { - "id": "6352f09b1e53a420e7873344", + "id": "6352ecef9f045519063da9b3", "title": "Step 39" }, { - "id": "6352f179bdca23221298a5ba", + "id": "6352edee8a4de01ad693f0e4", "title": "Step 40" }, { - "id": "6352f2526dccb523150b64fb", + "id": "6352ee566a59d31d24bde74b", "title": "Step 41" }, { - "id": "6352f2a24eb71b24284ca2b6", + "id": "6352f09b1e53a420e7873344", "title": "Step 42" }, { - "id": "6352faf71a9db52631864634", + "id": "6352f179bdca23221298a5ba", "title": "Step 43" }, { - "id": "6352fbb93a91a8272f838d42", + "id": "6352f2526dccb523150b64fb", "title": "Step 44" }, { - "id": "6352fcb156834128001ea945", + "id": "6352f2a24eb71b24284ca2b6", "title": "Step 45" }, { - "id": "6352fce75b2d3b2924930f1e", + "id": "6352faf71a9db52631864634", "title": "Step 46" }, { - "id": "6352fe473d53592a40ae403b", + "id": "6352fbb93a91a8272f838d42", "title": "Step 47" }, { - "id": "6352fed209792d2b89e92ea1", + "id": "6352fcb156834128001ea945", "title": "Step 48" }, { - "id": "6352ff27e0e51b2c7dce0010", + "id": "6352fce75b2d3b2924930f1e", "title": "Step 49" }, { - "id": "6352ffe4cfafa72d595a0007", + "id": "6352fe473d53592a40ae403b", "title": "Step 50" }, { - "id": "6353004b235d7a2e0b913f2b", + "id": "6352fed209792d2b89e92ea1", "title": "Step 51" }, { - "id": "6353024f5eab012fa2f57eec", + "id": "6352ff27e0e51b2c7dce0010", "title": "Step 52" }, { - "id": "6353028147d3c7309017216a", + "id": "6352ffe4cfafa72d595a0007", "title": "Step 53" }, { - "id": "635302be760d6031d11a06cd", + "id": "6353004b235d7a2e0b913f2b", "title": "Step 54" }, { - "id": "6374249d3fbf2a5b079ba036", + "id": "6353024f5eab012fa2f57eec", "title": "Step 55" + }, + { + "id": "6353028147d3c7309017216a", + "title": "Step 56" + }, + { + "id": "635302be760d6031d11a06cd", + "title": "Step 57" + }, + { + "id": "6374249d3fbf2a5b079ba036", + "title": "Step 58" } ] } diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/635090f47eb6d9563a6fed05.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/635090f47eb6d9563a6fed05.md index e32a5443b49..02ad908203d 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/635090f47eb6d9563a6fed05.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/635090f47eb6d9563a6fed05.md @@ -1,46 +1,35 @@ --- id: 635090f47eb6d9563a6fed05 -title: Step 22 +title: Step 26 challengeType: 0 -dashedName: step-22 +dashedName: step-26 --- # --description-- -The next step is to find the number in the middle of the list. If the list has an odd number of numbers, the middle number is the median. If the list has an even number of numbers, the median is the average of the two middle numbers. +Now it is time to apply what you have learned to the `getMedian` function. -You can check if a number is even or odd with the modulus operator, which is represented by the `%` symbol. This operator returns the remainder of the division of two numbers. If the remainder is `0`, the number is even. If the remainder is `1`, the number is odd: +Inside your `getMedian` function, check if the length of `array` is even. If it is, find the middle two numbers, calculate their mean, and return the result. If the length of `array` is odd, return the middle number. -```js -array.length % 2 === 0; -``` +Make sure to work with the `sorted` array to find the middle numbers. -Declare a `median` variable. Using the ternary operator, check if the length of `array` is even. If the length of `array` is even, find the two middle numbers and calculate the mean of those numbers. If the length of `array` is odd, find the middle number and assign it to the `median` variable. +Also if you need help, refer back to the previous few steps to see how to find the median for an array. # --hints-- -Your `getMedian` function should have a `median` variable. + +Your `getMedian` function should return the mean of the middle two numbers if the array length is even. ```js -assert.match(getMedian.toString(), /median\s*=/); +assert.equal(getMedian([1,2,3,4,5,6]), 3.5); +assert.equal(getMedian([1,2,3,4,5,6,7,8,9,10]), 5.5); ``` -Your `median` variable should use a ternary operator to check if the `array.length` is even. +Your `getMedian` function should return the middle number if the array length is odd. ```js -assert.match(getMedian.toString(), /median\s*=\s*array\.length\s*%\s*2\s*===\s*0\s*\?/); -``` - -If `array.length` is even, pass an array with the two middle numbers from the `sorted` array to the `getMean` function. The first item in the array argument should be the value at index `array.length / 2` from `sorted` and the second should use the value at the index `array.length / 2 - 1` from `sorted`. - -```js -assert.match(getMedian.toString(), /median\s*=\s*array\.length\s*%\s*2\s*===\s*0\s*\?\s*getMean\(\s*\[\s*sorted\s*\[\s*array\.length\s*\/\s*2\s*\]\s*,\s*sorted\s*\[\s*array\.length\s*\/\s*2\s*-\s*1\s*\]\s*\]\s*\)\s*\:/); -``` - -If the `array.length` is odd, your `median` variable should assign the middle number to the `median` variable. The middle number is the value of `sorted` at `Math.floor(array.length / 2)`. - -```js -assert.match(getMedian.toString(), /median\s*=\s*array\.length\s*%\s*2\s*===\s*0\s*\?\s*getMean\(\s*\[\s*sorted\s*\[\s*array\.length\s*\/\s*2\s*\]\s*,\s*sorted\s*\[\s*array\.length\s*\/\s*2\s*-\s*1\s*\]\s*\]\s*\)\s*\:\s*sorted\s*\[\s*Math\.floor\(\s*array\.length\s*\/\s*2\s*\)\s*\]\s*;/); +assert.equal(getMedian([1,2,3,4,5]), 3); +assert.equal(getMedian([1,2,3,4,5,6,7,8,9]), 5); ``` # --seed-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352e79d15aae30fac58f48e.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352e79d15aae30fac58f48e.md index e38537ed779..2f4c5efc335 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352e79d15aae30fac58f48e.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352e79d15aae30fac58f48e.md @@ -1,8 +1,8 @@ --- id: 6352e79d15aae30fac58f48e -title: Step 24 +title: Step 27 challengeType: 0 -dashedName: step-24 +dashedName: step-27 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352e80e024e89111600edfb.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352e80e024e89111600edfb.md index 3971bb11b5c..8168344a750 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352e80e024e89111600edfb.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352e80e024e89111600edfb.md @@ -1,8 +1,8 @@ --- id: 6352e80e024e89111600edfb -title: Step 25 +title: Step 28 challengeType: 0 -dashedName: step-25 +dashedName: step-28 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352e93db104661305c5f658.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352e93db104661305c5f658.md index ba3a16425c3..2360600b0dc 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352e93db104661305c5f658.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352e93db104661305c5f658.md @@ -1,8 +1,8 @@ --- id: 6352e93db104661305c5f658 -title: Step 26 +title: Step 29 challengeType: 0 -dashedName: step-26 +dashedName: step-29 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352e96d2604f813c656750b.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352e96d2604f813c656750b.md index 031b9f2a733..44be8b92954 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352e96d2604f813c656750b.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352e96d2604f813c656750b.md @@ -1,8 +1,8 @@ --- id: 6352e96d2604f813c656750b -title: Step 27 +title: Step 30 challengeType: 0 -dashedName: step-27 +dashedName: step-30 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ea3a5b79e614ee2282fd.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ea3a5b79e614ee2282fd.md index 88ed8671056..72b2cebe4fa 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ea3a5b79e614ee2282fd.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ea3a5b79e614ee2282fd.md @@ -1,8 +1,8 @@ --- id: 6352ea3a5b79e614ee2282fd -title: Step 33 +title: Step 36 challengeType: 0 -dashedName: step-33 +dashedName: step-36 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ebd3ab962c168a122e85.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ebd3ab962c168a122e85.md index 08ad0b34849..705008d4632 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ebd3ab962c168a122e85.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ebd3ab962c168a122e85.md @@ -1,8 +1,8 @@ --- id: 6352ebd3ab962c168a122e85 -title: Step 34 +title: Step 37 challengeType: 0 -dashedName: step-34 +dashedName: step-37 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ec8b9c70fd17b8c7ba3f.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ec8b9c70fd17b8c7ba3f.md index fc874424639..5c0ae57b935 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ec8b9c70fd17b8c7ba3f.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ec8b9c70fd17b8c7ba3f.md @@ -1,8 +1,8 @@ --- id: 6352ec8b9c70fd17b8c7ba3f -title: Step 35 +title: Step 38 challengeType: 0 -dashedName: step-35 +dashedName: step-38 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ecef9f045519063da9b3.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ecef9f045519063da9b3.md index 2feb5e280e6..40edd9e19c8 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ecef9f045519063da9b3.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ecef9f045519063da9b3.md @@ -1,8 +1,8 @@ --- id: 6352ecef9f045519063da9b3 -title: Step 36 +title: Step 39 challengeType: 0 -dashedName: step-36 +dashedName: step-39 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352edee8a4de01ad693f0e4.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352edee8a4de01ad693f0e4.md index 132c261f1cb..a493399f414 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352edee8a4de01ad693f0e4.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352edee8a4de01ad693f0e4.md @@ -1,8 +1,8 @@ --- id: 6352edee8a4de01ad693f0e4 -title: Step 37 +title: Step 40 challengeType: 0 -dashedName: step-37 +dashedName: step-40 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ee566a59d31d24bde74b.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ee566a59d31d24bde74b.md index b1aa8b94681..86ea1bc1ad8 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ee566a59d31d24bde74b.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ee566a59d31d24bde74b.md @@ -1,8 +1,8 @@ --- id: 6352ee566a59d31d24bde74b -title: Step 38 +title: Step 41 challengeType: 0 -dashedName: step-38 +dashedName: step-41 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352f09b1e53a420e7873344.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352f09b1e53a420e7873344.md index 03a9f6d5a9e..d0eea0a75ca 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352f09b1e53a420e7873344.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352f09b1e53a420e7873344.md @@ -1,8 +1,8 @@ --- id: 6352f09b1e53a420e7873344 -title: Step 39 +title: Step 42 challengeType: 0 -dashedName: step-39 +dashedName: step-42 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352f179bdca23221298a5ba.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352f179bdca23221298a5ba.md index dea3e2d12e3..45f19daffa2 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352f179bdca23221298a5ba.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352f179bdca23221298a5ba.md @@ -1,8 +1,8 @@ --- id: 6352f179bdca23221298a5ba -title: Step 40 +title: Step 43 challengeType: 0 -dashedName: step-40 +dashedName: step-43 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352f2526dccb523150b64fb.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352f2526dccb523150b64fb.md index f9b9d4a9e66..d71852a3b35 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352f2526dccb523150b64fb.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352f2526dccb523150b64fb.md @@ -1,8 +1,8 @@ --- id: 6352f2526dccb523150b64fb -title: Step 41 +title: Step 44 challengeType: 0 -dashedName: step-41 +dashedName: step-44 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352f2a24eb71b24284ca2b6.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352f2a24eb71b24284ca2b6.md index f3349635bd7..6033acf2f5a 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352f2a24eb71b24284ca2b6.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352f2a24eb71b24284ca2b6.md @@ -1,8 +1,8 @@ --- id: 6352f2a24eb71b24284ca2b6 -title: Step 42 +title: Step 45 challengeType: 0 -dashedName: step-42 +dashedName: step-45 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352faf71a9db52631864634.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352faf71a9db52631864634.md index e12d963476f..cf883b6e1bd 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352faf71a9db52631864634.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352faf71a9db52631864634.md @@ -1,8 +1,8 @@ --- id: 6352faf71a9db52631864634 -title: Step 43 +title: Step 46 challengeType: 0 -dashedName: step-43 +dashedName: step-46 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fbb93a91a8272f838d42.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fbb93a91a8272f838d42.md index 748a964689e..2a27e641fcf 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fbb93a91a8272f838d42.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fbb93a91a8272f838d42.md @@ -1,8 +1,8 @@ --- id: 6352fbb93a91a8272f838d42 -title: Step 44 +title: Step 47 challengeType: 0 -dashedName: step-44 +dashedName: step-47 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fcb156834128001ea945.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fcb156834128001ea945.md index a9ebf1a0a4d..d48a90cb574 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fcb156834128001ea945.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fcb156834128001ea945.md @@ -1,8 +1,8 @@ --- id: 6352fcb156834128001ea945 -title: Step 45 +title: Step 48 challengeType: 0 -dashedName: step-45 +dashedName: step-48 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fce75b2d3b2924930f1e.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fce75b2d3b2924930f1e.md index 9ed32b64db0..25fc914cc5e 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fce75b2d3b2924930f1e.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fce75b2d3b2924930f1e.md @@ -1,8 +1,8 @@ --- id: 6352fce75b2d3b2924930f1e -title: Step 46 +title: Step 49 challengeType: 0 -dashedName: step-46 +dashedName: step-49 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fe473d53592a40ae403b.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fe473d53592a40ae403b.md index a6a0907d469..0aa6205db6f 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fe473d53592a40ae403b.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fe473d53592a40ae403b.md @@ -1,8 +1,8 @@ --- id: 6352fe473d53592a40ae403b -title: Step 47 +title: Step 50 challengeType: 0 -dashedName: step-47 +dashedName: step-50 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fed209792d2b89e92ea1.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fed209792d2b89e92ea1.md index 0c1896055e0..2e133af9c7e 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fed209792d2b89e92ea1.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352fed209792d2b89e92ea1.md @@ -1,8 +1,8 @@ --- id: 6352fed209792d2b89e92ea1 -title: Step 48 +title: Step 51 challengeType: 0 -dashedName: step-48 +dashedName: step-51 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ff27e0e51b2c7dce0010.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ff27e0e51b2c7dce0010.md index 425d506d406..09ab6f7cf5a 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ff27e0e51b2c7dce0010.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ff27e0e51b2c7dce0010.md @@ -1,8 +1,8 @@ --- id: 6352ff27e0e51b2c7dce0010 -title: Step 49 +title: Step 52 challengeType: 0 -dashedName: step-49 +dashedName: step-52 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ffe4cfafa72d595a0007.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ffe4cfafa72d595a0007.md index b578054c742..fde6e2e1d0e 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ffe4cfafa72d595a0007.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6352ffe4cfafa72d595a0007.md @@ -1,8 +1,8 @@ --- id: 6352ffe4cfafa72d595a0007 -title: Step 50 +title: Step 53 challengeType: 0 -dashedName: step-50 +dashedName: step-53 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6353004b235d7a2e0b913f2b.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6353004b235d7a2e0b913f2b.md index a056a62e106..236f4504b2a 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6353004b235d7a2e0b913f2b.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6353004b235d7a2e0b913f2b.md @@ -1,8 +1,8 @@ --- id: 6353004b235d7a2e0b913f2b -title: Step 51 +title: Step 54 challengeType: 0 -dashedName: step-51 +dashedName: step-54 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6353024f5eab012fa2f57eec.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6353024f5eab012fa2f57eec.md index e6be6540cf4..926956a5da8 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6353024f5eab012fa2f57eec.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6353024f5eab012fa2f57eec.md @@ -1,8 +1,8 @@ --- id: 6353024f5eab012fa2f57eec -title: Step 52 +title: Step 55 challengeType: 0 -dashedName: step-52 +dashedName: step-55 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6353028147d3c7309017216a.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6353028147d3c7309017216a.md index 156118c9a93..ab058c2de79 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6353028147d3c7309017216a.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6353028147d3c7309017216a.md @@ -1,8 +1,8 @@ --- id: 6353028147d3c7309017216a -title: Step 53 +title: Step 56 challengeType: 0 -dashedName: step-53 +dashedName: step-56 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/635302be760d6031d11a06cd.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/635302be760d6031d11a06cd.md index e0bb3bbb859..552d6b1fc35 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/635302be760d6031d11a06cd.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/635302be760d6031d11a06cd.md @@ -1,8 +1,8 @@ --- id: 635302be760d6031d11a06cd -title: Step 54 +title: Step 57 challengeType: 0 -dashedName: step-54 +dashedName: step-57 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6374249d3fbf2a5b079ba036.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6374249d3fbf2a5b079ba036.md index 43d09221faf..3960bcc7333 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6374249d3fbf2a5b079ba036.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/6374249d3fbf2a5b079ba036.md @@ -1,8 +1,8 @@ --- id: 6374249d3fbf2a5b079ba036 -title: Step 55 +title: Step 58 challengeType: 0 -dashedName: step-55 +dashedName: step-58 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65aac0678d51b3f1a0cb8061.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65aac0678d51b3f1a0cb8061.md index c340d1502ed..70baccced66 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65aac0678d51b3f1a0cb8061.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65aac0678d51b3f1a0cb8061.md @@ -1,8 +1,8 @@ --- id: 65aac0678d51b3f1a0cb8061 -title: Step 28 +title: Step 31 challengeType: 0 -dashedName: step-28 +dashedName: step-31 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65c4dc57418fd6bfc710d61d.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65c4dc57418fd6bfc710d61d.md index bee84b53d60..29347f0d848 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65c4dc57418fd6bfc710d61d.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65c4dc57418fd6bfc710d61d.md @@ -1,8 +1,8 @@ --- id: 65c4dc57418fd6bfc710d61d -title: Step 29 +title: Step 32 challengeType: 0 -dashedName: step-29 +dashedName: step-32 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65ca2d0625aa3a3201067f70.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65ca2d0625aa3a3201067f70.md index 830f65d5e9a..d6091a606d2 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65ca2d0625aa3a3201067f70.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65ca2d0625aa3a3201067f70.md @@ -1,8 +1,8 @@ --- id: 65ca2d0625aa3a3201067f70 -title: Step 30 +title: Step 33 challengeType: 0 -dashedName: step-30 +dashedName: step-33 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65e62efde0592ec4b4bb6a69.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65e62efde0592ec4b4bb6a69.md index bb3e3486856..f8ad27c397c 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65e62efde0592ec4b4bb6a69.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65e62efde0592ec4b4bb6a69.md @@ -1,8 +1,8 @@ --- id: 65e62efde0592ec4b4bb6a69 -title: Step 31 +title: Step 34 challengeType: 0 -dashedName: step-31 +dashedName: step-34 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65f83a7ca7047318e3ccff7c.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65f83a7ca7047318e3ccff7c.md index 11d921c468c..054a0bfb0a8 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65f83a7ca7047318e3ccff7c.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/65f83a7ca7047318e3ccff7c.md @@ -1,8 +1,8 @@ --- id: 65f83a7ca7047318e3ccff7c -title: Step 32 +title: Step 35 challengeType: 0 -dashedName: step-32 +dashedName: step-35 --- # --description-- diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/635091f8dbf554575fb5aa0c.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/661890c4abae9f2a0eddad6b.md similarity index 67% rename from curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/635091f8dbf554575fb5aa0c.md rename to curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/661890c4abae9f2a0eddad6b.md index 06ece08507a..2bfc369ec1f 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/635091f8dbf554575fb5aa0c.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/661890c4abae9f2a0eddad6b.md @@ -1,22 +1,52 @@ --- -id: 635091f8dbf554575fb5aa0c -title: Step 23 +id: 661890c4abae9f2a0eddad6b +title: Step 22 challengeType: 0 -dashedName: step-23 +dashedName: step-22 --- # --description-- -Finally, return the value of `median`. +In the next few steps, you'll learn how to determine if an array's length is even or odd, as well as how to find the median. You will then be able to apply what you learned to the `getMedian` function. -Like the `getMean` function, you could condense this code into one line and reduce the number of variables you instantiate. However, it is important to remember that shorter code is not always better code. In this case, reducing the lines of code would make the code harder to read and understand, impacting future maintainability. +To check if a number is even or odd, you can use the modulus operator `%`. The modulus operator returns the remainder of the division of two numbers. + +Here is an example checking if an array length is even or odd: + +```js +// check if array length is even +arr.length % 2 === 0; + +// check if array length is odd +arr.length % 2 === 1; +``` + +If the remainder is `0`, the number is even. If the remainder is `1`, the number is odd. + +Create a variable called `isEven`. Then use the modulus operator to check if the length of the `testArr2` array is even. Assign that expression to the `isEven` variable. + +Below your `isEven` variable, log out the `isEven` variable to the console. + +Open up the console to see the result. # --hints-- -Your `getMedian` function should return the value of `median`. +You should have an `isEven` variable. ```js -assert.match(getMedian.toString(), /return\s+median\s*;?/); +assert.isDefined(isEven); +``` + +You should check if the length of the `testArr2` array is even. Refer back to the example provided for you: `arr.length % 2 === 0;` + +```js +assert.isTrue(isEven); +``` + +You should have a `console.log` statement that logs the `isEven` variable. + +```js +assert.match(code, /console\.log\(isEven\)/); ``` # --seed-- @@ -108,15 +138,14 @@ input { ```js const getMean = (array) => array.reduce((acc, el) => acc + el, 0) / array.length; +--fcc-editable-region-- +const testArr1 = [1, 2, 3, 4, 5]; +const testArr2 = [1, 2, 3, 4, 5, 6]; + --fcc-editable-region-- const getMedian = (array) => { const sorted = array.sort((a, b) => a - b); - const median = - array.length % 2 === 0 - ? getMean([sorted[array.length / 2], sorted[array.length / 2 - 1]]) - : sorted[Math.floor(array.length / 2)]; } ---fcc-editable-region-- const calculate = () => { const value = document.querySelector("#numbers").value; diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/661899113600ef307d8a7487.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/661899113600ef307d8a7487.md new file mode 100644 index 00000000000..c57f5c9cc4d --- /dev/null +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-advanced-array-methods-by-building-a-statistics-calculator/661899113600ef307d8a7487.md @@ -0,0 +1,162 @@ +--- +id: 661899113600ef307d8a7487 +title: Step 23 +challengeType: 0 +dashedName: step-23 +--- + +# --description-- + +To get the median of an array with an odd number of elements, you will need to find and return the middle number. + +Here is how to find the middle number of an array with an odd number of elements: + +```js +arr[Math.floor(arr.length / 2)]; +``` + +Here is a longer example finding the middle number of an array with `5` elements: + +```js +const numbers = [1, 2, 3, 4, 5]; +const middleNumber = numbers[Math.floor(numbers.length / 2)]; +console.log(middleNumber); // 3 +``` + +The reason why you use `Math.floor` is because the result of dividing an odd number by `2` will be a decimal. `Math.floor` will round down to the nearest whole number. + +Declare an `oddListMedian` variable and assign it the result of finding the middle number of the `testArr1`. Then log the `oddListMedian` variable to the console. + +Open up the console to see the result. + +# --hints-- + +You should have an `oddListMedian` variable. + +```js +assert.isDefined(oddListMedian); +``` + +You should assign the result of finding the middle number for the `testArr1` to the `oddListMedian` variable. Remember to refer to the example from earlier: `arr[Math.floor(arr.length / 2)];` + +```js +assert.strictEqual(oddListMedian, 3); +``` + +You should have a console statement that logs the `oddListMedian` variable. + +```js +assert.match(code, /console\.log\(\s*oddListMedian\s*\);?/); +``` + +# --seed-- + +## --seed-contents-- + +```html + + +
+ + + + +Enter a list of comma-separated numbers.
+ ++ The mean of a list of numbers is the average, calculated by + taking the sum of all numbers and dividing that by the count of numbers. +
+Mean:
++ The median of a list of numbers is the number that appears in + the middle of the list, when sorted from least to greatest. +
+Median:
++ The mode of a list of numbers is the number that appears most + often in the list. +
+Mode:
++ The range of a list of numbers is the difference between the + largest and smallest numbers in the list. +
+Range:
++ The variance of a list of numbers measures how far the values + are from the mean, on average. +
+Variance:
++ The standard deviation of a list of numbers is the square + root of the variance. +
++ Standard Deviation: +
+Enter a list of comma-separated numbers.
+ ++ The mean of a list of numbers is the average, calculated by + taking the sum of all numbers and dividing that by the count of numbers. +
+Mean:
++ The median of a list of numbers is the number that appears in + the middle of the list, when sorted from least to greatest. +
+Median:
++ The mode of a list of numbers is the number that appears most + often in the list. +
+Mode:
++ The range of a list of numbers is the difference between the + largest and smallest numbers in the list. +
+Range:
++ The variance of a list of numbers measures how far the values + are from the mean, on average. +
+Variance:
++ The standard deviation of a list of numbers is the square + root of the variance. +
++ Standard Deviation: +
+Enter a list of comma-separated numbers.
+ ++ The mean of a list of numbers is the average, calculated by + taking the sum of all numbers and dividing that by the count of numbers. +
+Mean:
++ The median of a list of numbers is the number that appears in + the middle of the list, when sorted from least to greatest. +
+Median:
++ The mode of a list of numbers is the number that appears most + often in the list. +
+Mode:
++ The range of a list of numbers is the difference between the + largest and smallest numbers in the list. +
+Range:
++ The variance of a list of numbers measures how far the values + are from the mean, on average. +
+Variance:
++ The standard deviation of a list of numbers is the square + root of the variance. +
++ Standard Deviation: +
+