The blanks are filled in the following:
' Create the array PRINT "How many days to average?" INPUT NUM DIM RAIN( 1 TO NUM ) ' Collect each day's rainfall FOR COUNT = 1 TO NUM PRINT "Input rain for day number "; COUNT INPUT RAIN( COUNT ) NEXT COUNT ' Add up the rainfall for each day LET SUM = 0.0 FOR COUNT = 1 TO NUM LET SUM = SUM + RAIN( COUNT ) NEXT COUNT ' Compute and print the average LET AVERAGE = SUM / NUM PRINT "The average rainfall is: "; AVERAGE END
Are you eager to see an example of this program working?