The answer is given below.
Here is the completed program:
DIM VALUE(1 TO 5) ' Ask for an array of floating point numbers ' LET VALUE(1) = 19.234 ' Put 19.234 into the first slot of the array LET VALUE(2) = -12.6 ' Put -12.6 into the second slot LET VALUE(3) = 99.85 ' Put 99.85 into the third slot PRINT "First slot:", VALUE(1) ' Print out the first slot PRINT "2nd slot:", VALUE(2) ' Print out the second slot PRINT "3rd slot:", VALUE(3) ' Print out the third slot END
Here is what the array looks like after the three assignment statements have executed:
19.234 |
-12.6 |
99.85 |
0.0 |
0.0 |
1 |
2 |
3 |
4 |
5 |
All slots of the array have a value in them, not just the ones used in the assignment statements.
Can the value in any slot be changed?