Answer:

Wedge of Stars

Each time the module is asked to do something, it does it. It does not matter that the module is inside a loop. If it is supposed to print NUM stars, and NUM is 8, that is what it does.

' Do the loop body ten times
FOR LINE = 1 TO 10
   
  LET  NUM = LINE
  +---------------------------------+
  |                                 |
  |  Print NUM stars in a new row   |
  |                                 |
  +---------------------------------+
  
NEXT LINE
'
END

The program prints out ten rows that look like this:

*
**
***
****
*****
******
*******
********
*********
**********

Each of the above lines corresponds to a different value of LINE (and a different value of NUM.)

QUESTION 6:

Now say that you wanted the row of ten stars to come first, followed by the row of nine stars, ..., and the row of one star last. How would you change the program to do that? (Hint: this sounds like a counting loop that is counting down by ones.)