SINCLAIR PROGRAMS, July/August 1982
===================================
ZX81 Other

CHORDS (16K ZX-81)
COMPOUND INTEREST (1K ZX-81)
CONSTELLATIONS (16K ZX-81)
CRIBBOARD (16K ZX-81)
HAPPY FACE (1K ZX-81)
LEAGUE TABLES (16K ZX-81)
MORSE CODE (1K ZX-81)
MULTIPLICATION TRAIN (1K ZX-81)
PRIME NUMBERS (1K ZX-81)
SIMPLE SUMS (1K ZX-81)
SKETCHER (1K ZX-81)
WORD PROCESSOR (16K ZX-81)
WORD PUZZLER (16K ZX-81)


CHORDS (16K ZX-81)
by Paul Hopgood
from Sinclair Programs 2 (July/August 1982), page 18

For all who are trying to master a musical instrument, Chords is a good
learning aid. By entering the name of a chord, the notes which comprise it
are displayed on a piano keyboard shown at the top of the screen.

Despite some chords having complicated titles, the program can deal with them
by using a code for the different elements, such as the note, whether in
major or minor and whether diminished or not. The code is shown on the screen
beneath the keyboard.

Chords was sent by Paul Hopgood, of Wantage, Oxfordshire. It was one of the
runners-up in the May competition in our companion publication, Sinclair
User, and needs the 16K RAM pack.


**********************************************************************
COMPOUND INTEREST (1K ZX-81)
by Stephen Booth
from Sinclair Programs 2 (July/August 1982), page 40

If you detest having to work out compound interest, this program is for you.
It works out the compound interest automatically once it has been told the
principal, the rate of interest, and the number of years to be considered. It
can also work out simple interest problems.

A short program, fitting into the 1K ZX-81, it was sent by Stephen Booth, of
Barnsley, South Yorkshire. He said it is useful helping him with his homework.


**********************************************************************
CONSTELLATIONS (16K ZX-81)
by Kevan Cheyne
from Sinclair Programs 2 (July/August 1982), page 25

Constellations is a program specially for all avid stargazers. Press RUN and
NEW LINE and a menu is provided, listing 10 groups of stars. Pick which one
you wish to see and the group of stars is shown, along with its name.

The list available is the same as that sent by the write of the program but
others can be added or substituted according to taste.

The main idea is to provide some kind of record of a particular
constellation, so it is essential to save the program on cassette.

Kevan Cheyne, aged 10, of Hartlepool, Cleveland, wrote the program for a
school project on stars. No doubt the next project will be to draw a picture
of Patrick Moore.

[The program fails to clear the screen after drawing a constellation and then
returning to the menu. This results in an error report 5. Also, all PRINT AT
or PRINT TAB commands have a comma follow the column coordinate rather than a
semicolon and so do not appear the produce the intended formatted output.]


**********************************************************************
CRIBBOARD (16K ZX-81)
by M J Bennett
from Sinclair Programs 2, July/August 1982, page 20

CRIBBOARD, as the name suggests,is a scoring system to use while playing
cribbage. A board is displayed on which the state of the game is shown by the
blanked-out hole on the board and the numerical total is shown. The result in
the number of games is also given.

When run, the players are asked if they are playing a bust or no-bust game
and the game is recorded as required. A maximum score of 29 is allowed on
each turn and the impossible figure of 19 cannot be entered. The score is
entered by giving the letter of the player, followed buy his score.

The program was sent by M J Bennett of Jeddah, Saudi Arabia. It requires the
16K RAM pack.


**********************************************************************
HAPPY FACE (1K ZX-81)
by Martin Bushell
from Sinclair Programs 2 (July/August 1982), page 34

An attempt is made by Martin Bushell, of Wokingham, Berkshire, to bring a
little happiness into the lives of readers of Sinclair Programs by producing
a smiling face.

When running, two eyes appear first on the screen, look around, and are then
followed by the nose and a smiling mouth. The left eye then winks and
continues winking until the program is stopped by pressing the BREAK key.

It is a very simple program, with little sophistication, but it can provide
some scope for making alterations to the graphics.

Bushell sent it as an entry for the May competition in Sinclair Programs
companion publication, Sinclair User.


**********************************************************************
LEAGUE TABLES (16K ZX-81)
by Stephen Cowlishaw
from Sinclair Programs 2 (July-August 1982), pages 35-36

For anyone who wants to keep records of league tables, as in football or
cricket, this program is ideal. Once the teams and the system of scoring for
wins, draws and losses have been entered, all you have to do is enter the
results and the league table is updated automatically.

The new league table can then be recorded on tape and called-up when more
results are to be entered.

The system in this listing is that of English league football but the values
for the results can be altered in lines 150 to 170. When entering the scores,
the sequence can be halted by pressing S and NEWLINE.

If the league  has been re-loaded from tape, the menu is displayed first,
asking whether you wish to enter new teams or the results or display the league
table.

There are two notes of warning. If the program has been interrupted by BREAK,
do not press RUN or cLEAR as all the variables will be cleared. If an error has
been made and put on file it is better to re-load the initial program and begin
entering the information again.

The program uses almost 3.5K of memory and was sent by Stephen Cowlishaw of
Nottingham. It was a runner-up in the May competition in our companion
publication, Sinclair User.



**********************************************************************
MORSE CODE (1K ZX-81)
by R S P Humpleby
from Sinclair Programs 2 (July/August 1982), page 46

A program for the radio enthusiast has been written by R S P Humpleby, of
Heckmondwike, West Yorkshire. It involves inputting the alphabet in Morse
code and then displaying the codes in random order and asking the player to
give the correct letter.

After the whole of the alphabet, the total of correct answers is given. For
anyone who does not know Morse, the codes in the listing are given in
alphabetical order.

It is a simple but effective program which can fit into 1K RAM.


**********************************************************************
MULTIPLICATION TRAIN (1K ZX-81)
by James Hurrell
from Sinclair Programs 2 (July/August 1982), page 44

A good, simple game for testing a variety of abilities with multiplication
sums has been sent by James Hurrell, of Knutsford, Cheshire. The aim is to
take a train to the end of a track by giving the correct answers to
multiplication problems given at random.

The program makes good use of the random function to produce different
problems and it contains alternative levels of difficulty.

To start the game, press RUN and NEWLINE; the player is asked which level of
difficulty is wanted, either one or two. A problem is then shown to which the
player gives an answer. If correct, a train moves along a track with a puff
of smoke from its funnel.

When the train reaches the end of the track, a buffer appears with "Well
done".

Alternative difficulties can be obtained by changing the lines 50 to 80.


**********************************************************************
PRIME NUMBERS (1K ZX-81)
by Mark Colson
from Sinclair Programs 2 (July/August 1982), page 37

The Prime Number Calculator was written by Mark Colson of Horncastle,
Lincolnshire as a quick program for working-out high prime numbers. He has
incorporated parts of other similar programs to achieve his objective and the
result is that, once run, a series of prime numbers is printed at the bottom
of the screen with the others scrolling upwards.

The program will continue until BREAK is pressed. If very high prime numbers
are required, alter the listing by the three instructions [listed below] and
the first seven-digit prime number will be worked-out in about 13 seconds.
Unfortunately the program then returns to slow mode and the second number
takes much longer. Perhaps someone could produce a slight adjustment to
overcome that?

For high prime numbers, adjust the program as follows:

    5 FAST
   10 LET L=1000000
   DELETE LINE 30


**********************************************************************
SIMPLE SUMS (1K ZX-81)
by R G Searle
from Sinclair Programs 2 (July/August 1982), page 14

We received a letter from R G Searle of Salisbury, Wiltshire, complimenting
us on our first edition but complaining that few programs catered for those
under the age of eight. "Yet that age group is fascinated by the ZX-81," he
wrote.

To help to remedy that he included a simple program which we print. As he
said: "It does not really do anything but I think it does what it does nicely."

It is called Simple Sums because that is what it does, taking young children
through the steps to simple arithmetic in a friendly way.


**********************************************************************
SKETCHER (1K ZX-81)
by Stuart Foley
from Sinclair Programs 2 (July/August 1982), page 46

A simple sketching program has been produced by Stuart Foley, of New Duston,
Northampton. Using the cursor keys, simple drawings can be made which still
require a fair amount of skill and can be really entertaining.

Once started, by pressing RUN and NEWLINE, the blip in the screen begins
drawing automatically. If you wish to erase anything or move to another
design without leaving a trail, press U, and a flashing blip erases anything
it passes over. Pressing P will return the program to drawing mode.

One thing of which to beware is that if the blip hits the edge of the screen
the program stops and cannot be re-started without losing everything which
has been drawn. To avoid that, start by drawing a border round the screen.
Sketcher fits into a 1K ZX-81.


*********************************************************************
WORD PROCESSOR (16K ZX-81)
by K J Moore
from Sinclair Programs 2 (July-August 1982), pages 12-13

A program which allows the 16K ZX-81 to be used as a word processor has been
sent by K J Moore of Shoeburyness, Essex. It was a runner-up in the May
competition in our companion publication, Sinclair User.

It allows the user to enter text directly on to the screen; the print position
can be moved to any point using the cursor keys and up to 10 screens of text
can be enterd.

When run, a brief list of instructions is given and to continue press NEWLINE,
when 'Screen 1' will appear. Press NEWLINE again and you are ready to enter
text.

Moore advises that when the program is run for the first time the user becomes
used to entering text on the screen before proceeding to press EDIT, which
brings up a list of print options. A further warning is that once an option has
been chosen there is no chance to change it until listing or printing has
finished.

One problem when entering text is that the space key doubles as the BREAK,
which will stop the program running. Within that system the space key is
NEWLINE. It is also worth noting that the typing must be done at the normal
speed for acceptance by the ZX-81, which can seem slow. While it is possible to
correct letters, ones which have been missed cannot be inserted without
repeating a good deal of text.

[Use the cursor keys to move the typing position]


*********************************************************************
WORD PUZZLER (16K ZX-81)
by Andrew Blackburn
from Sinclair Programs 2 (July-August 1982), pages 36-37

Word Puzzler is not so much a game as a game generator.

The object is to make word puzzles like those which appear in puzzle magazines,
where a series of words is hidden in a grid of random letters.

The words can be vertical, reversed or diagonal, but rarely obvious.

The ingenious program requires a list of up to 15 words each of up to 12
letters, in order of length and pressing NEWLINE to start. The screen goes
blank as the computer goes into fast mode to re-arrange the letters and hide
the words in a square of 15 by 15 letters.

Eventually the word puzzle is shown on the screen and the game is to find the
input words which are listed by the side of the square.

The gird can be printed so that a number of puzzles with different words can be
made at the same time.

The dimensions of the square are set by the variable G$(15,15) which can be
altered to provide other sizes.


Word Puzzler is from Andrew Blackburn, or North Hykeham, Lincoln.