Sharp EL-5250, EL-5230 operation manual PROGRAM MODE ƒRUN ⁄NEW ¤EDIT ‹DEL, Running the program

Models: EL-5230 EL-5250

1 132
Download 132 pages 22.67 Kb
Page 90
Image 90
Running the program

Chapter 8: Application Examples

Program code

Key operations

 

 

 

If T=1 Goto CTOF

i 8

; T ; = 1 ;

 

s i

9 @ a CTOF

 

; e

 

 

 

 

If T=2 Goto FTOC

i 8

; T ; = 2 ;

 

s i

9 @ a FTOC

 

; e

 

 

 

 

Goto START

i 9

@ a START ;

 

e

 

 

 

 

Label CTOF

i 6

@ a CTOF ;

 

e

 

 

 

F=(9©5)C≠+32

; F ; = ( 9 z 5

* The program automatically

) @ v C0 e e +

prompts you to enter a value for

32 e

 

the local variable C0.

 

 

 

 

 

Print F

i 0

; F e

 

 

End

i 5 e

 

 

 

Label FTOC

i 6

@ a FTOC ;

 

e

 

 

 

C=(5©9)˚(F≠-32)

; C ; = ( 5 z 9

* The program automatically

) k ( @ v d F0

prompts you to enter a value for

e e - 32 ) e

the local variable F0.

 

 

 

 

Print C

i 0 ; C e

 

 

End

i 5 e

 

 

 

Running the program

4.Press j to return to the PROG mode menu.

5.Press 0, select the program ‘TEMP’ and press e.

PROGRAM MODE ƒRUN ⁄NEW ¤EDIT ‹DEL

The program prompts you to choose which

conversion you wish to perform. Then it asks you to enter the tempera- ture value.

88

Page 90
Image 90
Sharp EL-5250, EL-5230 operation manual PROGRAM MODE ƒRUN ⁄NEW ¤EDIT ‹DEL, Running the program