Some programs require direction from the user-that is, from you
when you're running the program. When the user must supply values
for variables, a program can ask for input. When the user must
choose among several alternatives, a program can ask for a choice.
This chapter demonstrates how a program can ask for input or a
choice, using the following commands from the PROGRAM CON-
Suspend program execution.
Suspend program execution for s seconds.
Return a key string if a key was pressed.
Sound a tone of frequency
for s seconds.
Clear the display.
Display an object in line n of the display.
Restore the normal display when the program completes
Asking for Input
The following sequence creates a custom input menu for variables
sounds a tone to alert the user, and halts for input.
... -: :
: : -
BEEP HALT ...
27: Interactive Programs