BASIC
PROGRAMMING
A host of pre-written programs
is
available
on
tape cassettes that vou
can load into memory
and
execute simply by pressing a couple of keys
on
the
PET.
Some of the programs
that
vou can get are listed below. Some sources of
pre-written
PET
programs are listed in Appendix
E.
Address Book
Air-Sea
War
Alphabetizing
Baseball
Battleship
Biorhythm
Blockade
Calendar
Checkbook
Check
Writer
Chemistry Drills
Computer Art
Craps
Cryptograms
Depth Charge
Dogfight
Editor
ESP
Test
Football
Foreign Language
Golf
Hangman
Home Accounting System
Hostage
Investment Analysis
Inventory
Kite Fight
Life
Lunar Lander
Maze
Memory Test
Othello
Personal Ledger
Poetry
Poker
Pong
Racetrack
Recipe File
Rhyming
Road
Rally
Schedule Planner
Spelling
Star Trek
State Capitols
Stock Portfolio Analysis
Tic-tac-toe
Unlist
Vocabulary
Wallpaper
Wumpus
Yahtzee
ln addition to buying programs,
Vou
can also
write
your own programs
in
the BASIC language, to be developed and executed
on
the PET.
"BASIC". Beginners Ali-purpose Symbolic Instruction Code. was developed
at Dartmouth College in 1963.
It
is
one of the most popular computer languages.
particularly favored by beginning programmers because it
is
easy to learn and
easy to
use.
PET
BASIC
is
a variation of Dartmouth BASIC.
A
word
of caution here: if vou have never programmed before. do
not
be
misled into thinking
that
with
your personal computer vou
will
have your menus.
personal calendar. Esperanto concordance. and
FBI
agent file ail safely stored and
working in a few hours! There are real limitations to the
PET
- or any personal
computer -
as
this book points out. Even
with
the best of languages and the
most expensive
of
systems.
writing
useful. error-free programs
is
a real challenge.
But if vou have a bent for programming. and vou
will
have a good idea
whether
vou
do
or
not
after reading this book. vou
will
find
writing
your
own
programs for
the
PET
to be
an
exciting. rewarding pastime.
PET
MODELS
The first
PETs
were available
with
a compact. custom graphies keyboard
and built-in tape cassette unit.
as
shown in Figure
1-1
a.
Additional
PET
models
are
now available that have full-size keyboards. The tradeoff for these full-size
keyboards
is
that the tape cassette
unit
must
be
connected externally. The full-
size "graphies" keyboard
is
shown in Figure
1-1
b.
The CBM (Commodore Busi-
ness Machinel. a
PET
that has a full complement of small-business programs. and
that also functions
as
a
word
processor.
is
shown in Figure
l-1c.
3