EasyManuals Logo

Tandy 1000 Basic Reference Manual

Default Icon
411 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #61 background imageLoading...
Page #61 background image
Chapter
6
Grocery
Expense
ARRAYS
Gas
Clothes
Expense
Expense
An array is a group of related data values stored consecutively
in memory. The entire group of data values is referred to by one
variable name. Each data value is called an
element
of
the array.
A
subscript
is an integer used to refer
to
each element
of
the ar-
ray. For example, an array named
A
may contain 3 elements re-
ferred to as:
A(1) A(2) A(3)
Note:
Normally array elements start with Element
0;
however,
to
simplify this example, it starts with Ele-
ment
1.
You can modify the initial array element base-
number with the OPTION BASE statement.
You
can use each
of
these elements
to
store a separate data
value, such as:
A(1)
=
.10
A(2)
=
.20
A(3)
=
.30
You can imagine an array as a row
of
boxes, with the numbers
on them
to
identify them. Each box can hold a different value.
For example, Array A may hold your expenses.
This is a 1-dimensional array, because elements are arranged in
a
single row and only one subscript is used
to
an element. For
example, A(1) holds your grocery expense.
59

Table of Contents

Other manuals for Tandy 1000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tandy 1000 and is the answer not in the manual?

Tandy 1000 Specifications

General IconGeneral
ProcessorIntel 8088
Processor Speed4.77 MHz
RAM128 KB (expandable to 640 KB)
Operating SystemMS-DOS 2.11
ManufacturerTandy Corporation
Release Year1984
StorageSingle or double 5.25" floppy disk drive (360 KB), optional hard drive
SoundTandy 3-voice sound
PortsParallel, Serial
GraphicsCGA (Color Graphics Adapter)
Graphics Modes320x200, 640x200

Related product manuals