// Person 1 - User Stories

// The user wants to input a list of numbers (that can be any length) into the following
// functions.

// Function 1
// The user wants a function 'sum' that should add up all the numbers in the list
// and outputs a single number: the 'sum'.


// Function 2
// The user wants a function 'mean' that finds the average of all the numbers in the list
// (via summing all the numbers and dividing it by the length of the list). This function
// should output a single number: the 'mean'.

// Function 3
// The user wants a function 'median' that should order the list of numbers and find the
// number in the middle. If the list has an even number of numbers, the two numbers in 
// the middle should be averaged for the median. The function should output a single number
// the median. 
@@ -7,24 +7,22 @@
 son 
-1 - User Stories
+2 - Pseudocode
 %0A%0A//
@@ -123,16 +123,17 @@
 tions.%0A%0A
+%0A
 // Funct
@@ -145,34 +145,31 @@
 %0A// 
-The user wants a f
+Pseudocode%0A// F
 unction 
 'sum
@@ -168,103 +168,130 @@
 ion 
-'s
+S
 um
-'
  that 
-should add up all the numbers in the list
+takes in an Array as a param.%0A// Set a var as sum equal to zero%0A// FOR in array
 %0A// a
-nd outputs a single number: the '
+dd value to sum%0A// Return 
 sum
-'.
 %0A%0A%0A/
@@ -310,75 +310,72 @@
 %0A// 
-The user wants a function 'mean' that finds the average of 
+Create Function called mean which takes in an array%0A// c
 all the 
 numb
@@ -374,163 +374,102 @@
 the 
-numbers in the list%0A// (via summing all the numbers and dividing it by the length of the list). This function%0A// should output a single number: the '
+sum function on the array%0A// store that as sum%0A// divide the sum / array.length%0A// return 
 mean
-'.
 %0A%0A//
@@ -487,24 +487,14 @@
 %0A// 
-The user wants a
+Create
  fun
@@ -503,112 +503,62 @@
 ion 
-'
 median
-' that should order the list of numbers and find the%0A// number in the middle. I
+ which takes in an array%0A// i
 f the 
-list
+array
  has an 
 even
@@ -557,12 +557,11 @@
  an 
-even
+odd
  num
@@ -571,140 +571,164 @@
  of 
-numbers, the two numbers in %0A// the middle should be averaged for the median. The function should output a single number%0A// the
+elements%0A// %09%09Get the middle element%0A// %09%09Return middle element%0A// else%0A// %09%09call the median method with the two middle elements as an array%0A// %09%09Return 
  median
-. 

remove user stories and replace with psuedocode