Answer:

PRINT "Enter age"
INPUT AGE
'
IF AGE > 16 THEN
  PRINT "adult rate"
ELSE  
  PRINT "child rate"
END IF
'
PRINT "done"
END

Box Office Program

The program works correctly. Here is how it works:

  1. The program prints "Enter age".
  2. The user enters an age -- 21, for example.
  3. The 21 is put in AGE.
  4. The condition of the IF is tested: AGE > 16
  5. Because 21 > 16 the condition is TRUE.
  6. The true branch is executed: the program prints "adult rate".
  7. Execution continues with the statement after END IF: "done" is printed.

QUESTION 9:

What does the program output if the user enters 16?