/***
 * int main() is not required for the exam solution.  It is used
 * here to make sure the snippet compiles correctly.
 */
int main()
{
	const int SIZE(1024);  // not required in exam solution

	// BEGIN Exam Solution --- there are numerous different ways to 
	// write this solution for full credit.  I think this is perhaps the 
	// most straight-forward way for students to have written it.
	double array[SIZE] = {};	// initializes all elements to zero
	double v=0.001;
	for( int i=0; i<SIZE; i+=2 ) {  // note the skip by two
		array[i] = v;
		v += 0.001;
	}
	// END Exam Solution
	
	return 0;  // needed compile check
}

