Sharp EL-5230 Operation Manual page 90

Programmable scientific calculator
Table of Contents

Advertisement

Chapter 8: Application Examples
Program code
If T=1 Goto CTOF
If T=2 Goto FTOC
Goto START
Label CTOF
F=(9©5)C≠+32
* The program automatically
prompts you to enter a value for
the local variable C
Print F
End
Label FTOC
C=(5©9)˚(F≠-32)
* The program automatically
prompts you to enter a value for
the local variable F
Print C
End
Running the program
Press j to return to the PROG mode
4.
menu.
Press 0, select the program 'TEMP'
5.
and press e.
• The program prompts you to choose which
conversion you wish to perform. Then it asks you to enter the tempera-
ture value.
88
i 8 ; T ; = 1 ;
s i 9 @ a CTOF
; e
i 8 ; T ; = 2 ;
s i 9 @ a FTOC
; e
i 9 @ a START ;
e
i 6 @ a CTOF ;
e
; F ; = ( 9 z 5
) @ v C0 e e +
32 e
.
0
i 0 ; F e
i 5 e
i 6 @ a FTOC ;
e
; C ; = ( 5 z 9
) k ( @ v d F0
e e - 32 ) e
.
0
i 0 ; C e
i 5 e
Key operations
PROGRAM MODE
ƒRUN
¤EDIT ‹DEL
⁄NEW

Advertisement

Table of Contents
loading

This manual is also suitable for:

El-5250

Table of Contents