HP 32SII User Manual

Page 177

Advertising
background image

Simple

Programming

12–15

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

press

{

G

to start the equation. Press number and math keys to get

numbers and symbols. Press

K

before each letter. Press

š

to end the

equation.

If flag 10 is set, equations are displayed instead of being evaluated. This
means you can display any message you enter as are equation. (Flags are
discussed in detail in chapter 13.)

When the message is displayed, the program stops—.–press

f

to resume

execution. If the displayed message is longer than 12 characters, the

€

and

ž

annunciators turn on when the message is displayed. You can then use

6

and

<

to scroll the display. You can press

{

[SCRL]

to turn off

ž

and make the top–row keys perform their normal functions.

If you don't want the program to stop, see "Displaying Information without
Stopping" below.

Example:

INPUT, VIEW, and Messages in a Program.

Write an equation to find the surface area and volume of a cylinder given its
radius and height. Label the program C (for cylinder), and use the variables S
(surface area), V (volume), R (radius), and H (height). Use these formulas:

V =

π

R

2

H

S = 2

π

R

2

+ 2

π

RH = 2

π

R ( R + H )

Keys: Display:

Description:

z

d

z

U

Œ

Œ





!

Program, entry; sets pointer to top
of memory.

z

“

C

 





Labels program.

z

ˆ

R

 

"!



Labels program.

z

ˆ

H



"!



Instructions to prompt for radius
and height.

{

G

{

M

y

K

R

0

2

y

K

H







Calculates the volume.

Advertising