#include "summation.h" double sum(double [] array) { int count = 0; double sum = 0; while(count < array.length()) { sum = sum + array[count]; count ++; } return sum; }