To assign a value to an element in an array you code something like this:
anArray[ix] = theValue; // set the element at ix to theValue

Then vary the value of ix to move from one element to the...