Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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.