Sample Programs - Sharp EL-9450 Operation Manual

Graphing calculator
Hide thumbs Also See for EL-9450:
Table of Contents

Advertisement

Chapter 9: Programming Features
When an infinite
loop occurs

9. Sample programs

CONVERT
Selects conver-
sion mode
Celsius to
Fahrenheit
Fahrenheit to
Celsius
152
Execution can be interrupted by pressing O.
Use this command if the program enters an infinite loop. Press
; or ' to display the program source with the cursor on
the line where interrupted.
* Refer to Appendix "Error Codes and Error Messages" on page
167.
* Convert temperatures from Celsius to Fahrenheit.
Label START
Print "1. C TO F
Print "2. F TO C
Input S
If S = 1 Goto CTOF
If S = 2 Goto FTOC
Goto START
Label CTOF
Input C
(9/5) * C + 32 ⇒ F
Print "F
Print F
End
Label FTOC
Input F
(5/9) * (F – 32) ⇒ C
Print "C
Print C
End

Advertisement

Table of Contents
loading

Table of Contents