Last active
August 29, 2015 13:57
-
-
Save KeenRegard/9678167 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As a super, super important captain of business and industry, I need a system that will do the | |
following for my business: | |
I need `sum`, `mean`, and `median` to perform certain functions on my very important sets of | |
numbers. I need allof them to perform these actions and need to ensure I do not have the | |
same problem my LAST team caused. Those now-unemployed so-and-sos screwed up big time | |
(and cost me millions of dollars!) by not taking into account the fact that my number sets | |
can contain an even OR an odd number of elements! | |
So I need my number sets that have an even number of elements (say, `evenLengthArray`) | |
to work in your program as well as my sets with an odd number of elements (`oddLengthArray`). | |
Do not forget, or you will be on the streets!!! | |
'sum' needs to give me the sum of all the elements in my number sets. In a very similar way, | |
'mean' should give me the average of all the elements of my number sets. Lastly, because I am rich and crazy, | |
I need 'median' to give me the median of all the elements in my number sets. | |
Remember: regardless of whether the set is of an even or odd length, the same function should be | |
performed. | |
As an aside, if you are curious and must know: I sell old, chewed-up Crocs. I am a billionaire. | |
// It looks like we didn't pass the tests. However, the communication throughout seems to have been solid. | |
// The user stories pretty accurately detail what the code should do. I feel like I had such an easy job in | |
// this, which makes me think that working like this is great for some but REALLY difficult for others. | |
// I am grateful that I wasn't having to write code (pseudo or otherwise) because that would have been a lot to | |
// handle, considering how new we are to JS. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment