The complete program is given below.
Complete the program by:
(1) matching each value of COUNT
with a slot of the array, and
(2) putting 13.33 into that slot of the array.
DIM NUM( 1 TO 10 ) ' An array of 10 floating point numbers FOR COUNT = 1 TO 10 ' Visit each slot of the array LET VAL( COUNT ) = 13.33 ' Put the value 13.33 into this slot NEXT COUNT END
This way of filling the array is easier than
using 10 individual LET
statements.
It is also easier to see what is going on,
and easier to change.
Your boss, never one to let well enough alone,
wants the array VAL
to hold 100 items,
and wants 13.33 put into each slot.
Make just two changes to the program to do this.