HP 32SII User Manual

Page 204

Advertising
background image

13–14 Programming Techniques

File name 32sii-Manual-E-0424
Printed Date : 2003/4/24 Size : 17.7 x 25.2 cm

Example:

Controlling the Fraction Display.

The following program lets you exercise the calculator's fraction–display
capability. The program prompts for and uses your inputs for a fractional
number and a denominator (the /c value). The program also contains
examples of how the three fraction–display flags (7, 8, and 9) and the
"message–display" flag (10) are used.

Messages in this program are listed a MESSAGE and are entered as
equations:
1. Set Equation–entry mode by pressing

{

G

(the EQN annunciator

turns on).

2. Press

K

letter for each alpha character in the message; press

o

(the

f

key) for each space character.

3. Press

š

to insert the message in the current program line and end

Equation–entry mode.

Program Lines:

Description:

 





Begins the fraction program.

 



Clears three fraction flags.

 



 





 





Displays messages.

 



Selects decimal base.

 

"!

#

Prompts for a number.

 

"!



Prompts for denominator (2 – 4095).

 



#

Displays message, then shows the decimal
number.

 





 



!









+F

Sets /c value and sets flag 7.



 !

 

Displays message, then shows the fraction.

Advertising