EasyManua.ls Logo

Sinclair QL

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
Loading...
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

Related product manuals