Sharp EL6300 Operation Manual page 22

Table of Contents

Advertisement

Line numbers are written at the beginning of each statement line. The statement
line contains one or more commands or expressions and may include data. As
each line is written, it is entered into the memory by pressing
I
ENTER/.
When you
do
this,
a colon appears between the line number and the first letter of the
Line Numbers
To write a program, move the operation mode switch to COMP/PRO. If a
program already exists in the memory, you will see the first lines of this program
on the
display.
Otherwise, the display is blank, except for the >prompt.
To clear the old program, key in
Getting Started
This device's final feature is perhaps the most impressive and useful. In this
pocket-sized device is a small but powerful computer capable of carrying out a
number of programming operations using a simplified version of the BASIC
language.
This chapter is meant solely as an introduction to BASIC programming using the
calculator.
Persons already familiar with BASIC language will be able to quickly
use the calculator's programming capabilities. Others may find it helpful to
consult the application book on simplified BASIC programming included with
this calculator.
The next pages explain some programming features that are unique to the
calculator or may not be included in other BASIC language instruction books.
CHAPTER9
INTRODUCTION TO BASIC PROGRAMMING
37
CHAPTER 9 INTRODUCTION TO BASIC
PROGRAMMING
I
~ [[] OJ
[fil [f]
5
:::.±=]
12
0
3
I
ENTER
I
Example:
Unless otherwise
specified,
this calculator sequentially performs calculation
starting from the left member of the
expression,
irrespective of calculation rules.
For example, given
5+12X3
It performs the addition first then the multiplication. However, the
algebraic
calculation sequence of this expression is multiplication first and then the
addition. To make the calculator follow the algebraic
sequence,
add PRINT
command before the expression.
5 1.
Example: 5+12x3
Calculation Sequence
8 4
:;.]
6 9
0
9.
M
987
0
7
CM±:]
2 8
0.
M
256
[XJ
5
CM±:]
CHAPTER 8 CALCULATION MODE
36

Advertisement

Table of Contents
loading

Table of Contents