I am a student taking a class in Turbo Pascal (the 5th Ed. book).
I'm terrible at programming and missed the last class. I haven't
been able to find anyone that could help me understand the last work
we were given . I was hoping someone might be able
to explain this to me. I won't receive a grade in this until I complete
all my work and I don't seem to be able to get past this.
self-check pg. 439 #1: (on arrays) Turbo Pascal
The following sequence of statements changes the contents of array X.
Describe what each statement does to the array, and show the final
contents of array X after all statements execute.
X = array
I = index range
X[I] := X[I] + 10.0;
X[I - 1] := X[2 * 1 - 1];
X[I + 1] := X[2 * 1] + X[2 * I + 1);
for I :=3 downto 1 do
X[I + 1] := X[I]
I would appreciate any help I can get with this.