Beeping To Get Attention - HP 48gII Advanced User's Reference Manual

Graphing calculator
Hide thumbs Also See for 48gII:
Table of Contents

Advertisement

Program:
ELSE
WHILE
REPEAT
END
END
END
»
END
»
`OPHONES ‰
You can delete names and numbers by editing the NAMES variable.
To improve upon this program, create a delete name routine.

Beeping to Get Attention

To enter BEEP in a program:
1. Enter a number that specifies the tone frequency in hertz.
2. Enter a number that specifies the tone duration in seconds.
3. Enter the BEEP command (!°L%OUT% L menu).
« ... frequency duration BEEP ... »
BEEP takes two arguments from the stack: the tone frequency from level 2 and the tone duration from level 1.
Example:
The following edited version of TPROMPT sounds a 440-hertz, one-half-second tone at the prompt
for data input.
Program:
«
"ENTER a, b IN ORDER:"
440 .5 BEEP
PROMPT
TORSA
»
"VIEW A NUMBER"
NAMES 1 CHOOSE
STR MSGBOX
END
Comments:
If NAMES isn't empty,
creates a choose box using
NAMES as choice items.
When OK is pressed, the
second item in the NAMES
list pairs (the phone
number) is returned.
Makes it a string and
displays it.
Ends the WHILE loop, the
IF structure, and the CASE
statement.
Ends the CASE structure,
marks the end of the local
variable defining
procedure, ends the
WHILE loop, and marks
the end the program.
Stores the program in
PHONES.
Comments:
Sounds a tone just before
the prompt for data input.
RPL Programming 1-45

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

49g+

Table of Contents