Here is the program, again, but now there is a final loop that prints out just those days that are below average.
' 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 ' Print the number of each day with BELOW average rainfall PRINT "Below average days: " FOR COUNT = 1 TO NUM IF ( RAIN( COUNT ) _______ AVERAGE ) THEN PRINT ________ END IF NEXT COUNT END
Fill in the two blanks.