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 #188 background imageLoading...
Page #188 background image
Chapter
10
I
BASIC
Ke-ywords
Sample
Program
The program below uses INSTR
to
search through the addresses
contained in the program's DATA statements.
It
counts the num-
ber
of
addresses with
a
specified county zip code
(761--)
and re-
turns that number. The zip code
is
preceded by an asterisk
to
distinguish it from the other numeric data found in the address.
360
RESTORE
370 COUNTER
=
0
390 READ ADDRESS$
395 IF ADDRESS$
=
"SEND" THEN 410
400
IF
INSTRCADDRESSS, "*761")
<>
0
THEN COUNTER
=
COUNTER
+
1 ELSE
390
405
GOT0
390
410
PRINT "NUMBER
OF
TARRANT COUNTY, TX
ADDRESSES IS" COUNTER
:
END
420 DATA "5950 GORHAM DRIVE, BURLESON, TX
*761 48"
430 DATA "71 FIRSTFIELD ROAD, GAITHERSBURG, MD
*
2
0
76
0
'I
440 DFlTA
"1000
TWO TANDY CENTER, FORT WORTH, TX
*761 02"
450 DATA "16633 SOUTH CENTRAL EXPRESSWAY,
RICHARDSON, TX ~75080"
460 DATA ."$END"
186

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