Sharp EL-5250, EL-5230 operation manual Entering the program

Models: EL-5230 EL-5250

1 132
Download 132 pages 32.97 Kb
Page 80
Image 80
2.Entering the program

Chapter 7: Programming

2.Entering the program

Program code

 

Key operations

Print“B≥=BASE

i1@vB1 ee@

 

a=BASE ;e

Print“H≥=HEIGHT

i1@vdH1 ee

 

@a=HEIGHT;e

A=1ı2B≥H≥

;A;=1 k2 @v

 

e@vdee

Print“AREA

i1

@aAREA ;e

Print A

i0

;A e

 

 

 

To enter more than one alphabetic character, press @ato apply the alphabet-lock mode. Press ;to escape from this mode.

3.Running the program

Procedure

Key operations

Display

Return to the initial display

j

 

 

 

for the PROG mode.

 

 

 

 

Select and RUN the program.

0(Select the program.)

RUN ¬º⁄AREA

 

e

 

 

 

 

 

 

 

 

 

 

 

Enter 4 for B1

4 e

AREA

Enter 3 for H1

3 e

A=

6.

 

 

 

 

 

If the value of a local variable you defined using @vis unknown, the program automatically prompts you to input a value.

To quit running the program, press j. To run the program again, press e.

When a program is running, text displayed by the program (using the Print” command) will wrap to the next line if the text length exceeds the display width.

You can only enter one command per line except for special cases such as the ‘If…Goto’ structure.

For more programming examples, see Chapter 8: Application Examples.

78

Page 80
Image 80
Sharp EL-5250, EL-5230 operation manual Entering the program