EasyManuals Logo

Sinclair QL Beginner's Guide

Sinclair QL
135 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 #41 background imageLoading...
Page #41 background image
Controlled
cybernetic
feedback
Automated
user-friendly
transputers
Synchronised
parallel
micro-chips
Functional
learning
capability
Optional
adaptable
programming
Positive
modular
packages
Balanced
structured
databases
Integrated
logic-oriented
spreadsheets
Coordinated
file-oriented
word-processors
Sophisticated
Standardised
objectives
ANALYSIS
We will write a program to produce ten buzzword phrases. The stages of the program are:
1 Store the words in three string arrays.
2 Choose three random numbers which will be the subscripts of the array variables.
3 Print the phrase.
4 Repeat 2 and 3 ten times.
DESIGN - VARIABLES
We identify three arrays of which the first two will contain adjectives or words used as adjectives -
describing words. The third array will hold the nouns. There are 13 words in each section and the
longest word has 16 characters including a hyphen.
Array
Purpose
adjec1$(13,12)
first adjectives
adjec2$(13,16)
second adjectives
noun$(13,15)
nouns
DESIGN PROCEDURES
We use three procedures to match the jobs identified.
store_data - stores the three sets of thirteen words.
get_random - gets three random numbers in range 1 to 13.
make_phrase - prints a phrase.
DESIGN - MAIN PROGRAM
This is very simple because the main work is done by the procedures.
Declare (DIM) the arrays
Store_data
FOR ten phrases
get_random
make_phrase
END

Other manuals for Sinclair QL

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sinclair QL and is the answer not in the manual?

Sinclair QL Specifications

General IconGeneral
ProcessorMotorola 68008
Clock Speed7.5 MHz
RAM128 KB (expandable to 640 KB)
ROM48 KB
Operating SystemSinclair QDOS
Release Year1984
StorageMicrodrive tape loop
Graphics256x256 pixels, 8 colors
PortsRS-232, ROM cartridge
SoundBeeper (internal speaker)

Related product manuals