Please send questions to st10@humboldt.edu .
/*
  Contract: show_indexed_contents: double[] int -> void
  Purpose: print to the screen the indices and values of the <size>
           elements in array <values>, one index/value pair
           per line.

  Examples: if const int NUM_VALUES = 4; and
               double stuff[NUM_VALUES] = {48, 6.33, 2, 600};
            then show_indexed_contents(stuff, NUM_VALUES)
               would cause the following to be printed to the 
               screen:
0 - 48
1 - 6.33
2 - 2
3 - 600
*/

#include <iostream>
using namespace std;

void show_indexed_contents(double values[], int size)
{
    for (int i = 0; i < size; i++)
    {
        cout << i << " - " << values[i] << endl;
    }
}