Friday, March 25, 2011

Arrays in Programming

Arrays group similar data together
It saves you DIM DIM DIM DIM
e.g. DIM NAMES(10) as STRING
Initialising means Create or Blank an array.
Initialising
Creating is NAME + SIZE + DATA TYPE (3 marks)
or
Blanking is:
For Slot = 1 to end
Array(slot) = 0
Next

FOR loop will go from beginning to end for 3 marks in the exam
DO WHILE loop allows you to report on a full array or a search being successful for 5 marks in the exam

No comments:

Post a Comment