// Amory KC Wong
// Carson Graham Secondary
// 2015-08-25
// Exercise_5_2.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <stdlib.h>     /* srand, rand */

static int arr[] = { 10, 7, -1, 23, -8, 17, 39, 2, 29, -14,
					11, -5, 19, 8, 23, 11, 14, 3, -4, 21 };
//	static int arr[] = new int[20];

int _tmain(int argc, _TCHAR* argv[])
{
	// print the list of numbers
	printf("The list of numbers:\n");
	int sizeArr = sizeof(arr) / sizeof(int);
	for (int i = 0; i < sizeArr; i++) {
//		arr[i] = rand() % 100 - 30;
		printf("%d ", arr[i]);
	}
	printf("\nThere are %d numbers in the list\n\n", sizeArr);

	// now calculate the sum using for loops
	// calculate the average

	// now calculate the sum of squared deviations (differences from mean)

	// now calculate the variance (the average of the sum of squared deviations)

	// now calculate the standard deviation (square root of the variance)

	// now print
	return 0;
}
