Please send questions to st10@humboldt.edu .
#include <iostream>
#include <cmath>
#include "sum_array.h"
using namespace std;

/*-----
  Contract: main: void -> int

  Purpose: testing program for the function sum_array
  
  Examples: When this program is run, the following should
            be printed to the screen:
testing sum_array: true's should mean passed: 
---------------------------------------
(sum_array(fish_wts, NUM_WTS) == 137.5): true

  by: Sharon Tuttle 
  last modified: 04-22-10
  -----*/

int main()
{
    const int NUM_WTS = 5;
    double fish_wts[NUM_WTS] = {10, 20.5, 3, 4, 100};

    cout << boolalpha;
    cout << endl;
    cout << "testing sum_array: true's should mean passed: " << endl;
    cout << "---------------------------------------" << endl;
    cout << "(sum_array(fish_wts, NUM_WTS) == 137.5): " 
         << (sum_array(fish_wts, NUM_WTS) == 137.5) << endl;
    cout << endl;

    return EXIT_SUCCESS;
}