COMAL_Programming_Guide.pdf

(31796 KB) Pobierz
COMPUTING
S·T
·U·D·I·E·S
IN
·CONTEXT
COMPUTING
STU
-D-I-E-S
IN
-CONTE
X
T
PROGRAMMING GUIDE
Marcus Bowman and Stephen Pople
Heinemann Educational Books
TO THE TEACHER
COMAL demon disc
T
o
make
fu
ll
use
of this
programming
guide
you
will
need
a copy of
the COMAL
demon disc
.
The
disc
will run
on both
stand-alone
and
networked BBC
microcomputers .
Components of the Scheme
Computing Studies for GCSE
and
Standard
Grade
A full
colour
pupil textbook.
De tailed
case studies on: automated systems:
electronic
document processing;
information
systems
;
commercial
data processing.
Questions
on each self-contained spread.
Includes
summary of computing
principles
.
COMAL Demon Disk
The disk
consists of
program procedures
known
as
DEMONS
(demollstration software).
A DEMON
can
be
used 'off
the
shelf
' to
carry
out
simple
tasks without the need for
detailed
programmll1g.
DEMONS
can
be joined together to make
more
complex
programs, the ideal way
to
design
solutions
to
the
problems
in
the
programming guides.
Teacher's
Resource Pack
Teaching notes
for
the
cou
rse
.
A wide range of
practical
computing
activities
.
Extension work
related
to the pupil textbook.
Activities and
extension
work
supplied
in
a
ring binder as copyright-cleared A4
masters.
For Standard Grade Users
If
you
are
using tlus guide for the programming
part of a
Standard
Grade
Computing Studies
course,
the main
ideas
are
covered
in
these
sections:
Foundation
-
Part
1
General
-
Parts
1
and
2
together
Credit
-
Parts 1,
2 and
3
together
Part
4
of the
guide
provides
some suggestions
for
projects
graded
at 3
levels:
Foundation
-
Level 1
General
-
Level
2
Credit -
Level
3
22
Bedford
SqUat"t."
London
Ileincm<lnn Educational
B()ok~
Ltd
.
\rc
J
B:U
III
Acknowledgements
The Authors and Publishers would like to thank the following
for
permission
[Q
reproduce
photof,rraphs:
London
Edlllburgh
i\k:lboumt-' Auckland
Sin}.,1(lporc
Kuala Lumpur
:\ew
I>ellll
Ibadan
:'-imrobi Johannesbu
rg
Portslll(llnh
(;"'
11
)
Kingston
ISBN
I)
·1
:~5
77U5:',
1
<D
i\
l
an.:u~
Bowman
and
Slephell
l
upk'.
198H
First
published
III
19~5
All
rights
reSI..'ITt.'d.
No
part
of
this publication may be
reproduced.
stored
111
a
retrie-.<ll
srstcm. or
tl<lIlsmit\t."Ci.
in ;my foml ur
by
any means.
eleclmnic.
IIlIc"(hanical.
pbot()(opyill~.
fl.'l:ording
or otbl'rWl!il'. wIthout the prior
pcnnl
ssinn
of
IIl'lIlcmann
EducatIonal Books Ltd
.
Ong11l.t\cd
by
Gravut"t'
Enh,rraving
Scrvll:l's.
Bristol
Printed
and
bound
til
Great Britain
bv
BAS
Prinll'rs
Ltd.
()\'\~r
Wallop. Ilmllpshire
1.1 Brenda
PrincefFonnat.
FCII/alr
III('dl(mic:
1.
2
Ann Honan
Pictu re
Library.
IJ/ayerpiallu:
1.].
All
Sport.
C01ll1ll0l11lJ('(lII/t
Gfll/U'S:
1.5IJavid
I
~cdfelll
Photography.
Herbie
/Jrllll'l}('k:
1.6 Ford.
Ford
((II':
1.7
J
Allan
Cash.
Cuw
(/1/(/
calf:
I.SJ
Allan
Cash.
Ce()(/esic
bllilding:
1.11
Judy
H,mi
sonIFoll1laL
Complller
operator:
2.5
Financial
Times Photography.
COllnling
t'otes:
2.7
J
Allan
Cash.
Golfer:
2.9
Granada
T\·.
TV
quiz
:;/tOlC:
2.10
l3arnabys,
Gr(I'hvul/d tillS;
2.11
EHS
Photography.
Cas/llmillt lII(Jc/tlllr:
2.12 Sallr
&
I~icha rd
Gn:enhill.
School
kids:
3.2
Telefoclls.
IJll"rc/OI)'
ell(lllirirs:
3.3
Sporling
Pictures
(U
I\)
Ltd.
Scolllsil
joolb(lf/er:
3.5
J
Allan
Cash.
/llllI/willg
bird:
3.8
Pan
Am.
Airplane:
3.9 Jenn}Tf\
lathewslFonnat.
Y
OIllI}!
people:
J
Allan
Cash
,
Mall' 1IIl'("IUlllic:
".5
J
Allan
Cash.
Librfl1), (llId
SW(lI/:
".5
Laurie
Sparham/Net
work.
T/
'/ '
I/(Il!i'
''~:
4.5 EHS
Photography.
House.
All
others
taken by Chris
I~i
dgers.
".4
TO THE PUPIL
About this guide
.
..
This guide will
help
you
learn
to
solve
problems using a BBC micro-
computer
and the COMAL programming language.
To
go
with the
guide
there is
a
disc
of
COMAL
demons.
Demons
are
short
pieces
of
COMAL which
you
can
join together to make programs .
You
can
start
using
the demons to
solve
problems
straight
away. As
you work through
the guide
you can
learn how to
write your own
COMAL programs too.
·
..
and how to use it
To help
you
learn
to
use
COIVLAL
easily, this
guide
is presented in
two-
page units. Each unit introduces
a
new idea,
starting
with
a problem for
you to
solve.
Then there are notes
on
planning a program
to
solve
the
problem,
and
details about
writing,
running
and
testing
your
program.
Most units also have
a
Help box
containing
hints
to help
you
solve
the
problem.
Solving
problems is a
good
way
of
learning and
can
be fun too
,
so
try
the problems in the For
you
to do boxes
in
every
unit.
If
you
are
keen,
there are
more problems
for
you
to try,
and tips on how
to
solve
them
between pages 71
and 72.
Some useful features of the guide
summary pages tell
you
what
you should
be able
to
do if
you work
through
the
units in the
guide
.
See
pages 24, 50 and 70.
demon
documentation pages
list
the
COMA
L
demons
you
can
use
and
explain
what
they do.
See
pages
83
to 90.
index pages help
you
to find
examples
of how COIVLAL demons and
COMAL key words
are
used, and
let
you
check
up
on
important
ideas
in the guide.
See
pages
91 and 92.
This
guide
will
help
you to
learn
to
solve
problems using
COMAL, but
it
should
be fun to use
too.
We
hope
you enjoy
using
it.
Zgłoś jeśli naruszono regulamin