// WHO:         McCabe, Micheal H.
// WHAT:        Class 8 ForLoop	
// When:        020209


//
// Include the standard i/o and string class libraries

#include <iostream>
#include <string>
 
// specify the namespace

using namespace std;

//Declare the main function as returning an integer

int main()
{

// Sum all the values in the array Box[]

int Box[13] = {0,2,1,1,4,6,5,2,12,5,19,1,0};

// Declare and initialize real variable "sum" to acculmulate the sum

float sum = 0;
int index;

// Traverse the elements in the array "Box[]"
// Hardcode the <size> of the array "Box[]; <size> = 13"

for (index=0; index<12; index++)
        {
	sum = sum + Box[index]; // This is the same as sum += Box[index];
        }

// output a newline, the string "sum=", the sum and a newline.

cout << endl << "Sum = " << sum << endl;

// indicate a normal return

return 0;

// end the main function declaration
}

