Radio Shack TRS-80 User Manual page 180

Micro computer system
Hide thumbs Also See for TRS-80:
Table of Contents

Advertisement

PartB:
Sample Answers
SAMPLE
ANSWER FOR
EXERCISE
3-1
50
PRINT
DKIEa
SAMPLE
RUN FOR
EXERCISE
3-1
3000
Note:
You may
have used
a
different
line
number
in
your answer but
the
way
to get
the
answer
printed
on
the screen
is
by
using
the
PRINT
statement.
If
you
didn't get
it
right
the
first
time don't be discouraged.
Type
in line
50 above and
RUN
the
program.
Then
return to
Chapter
3
and
continue.
SAMPLE
ANSWER FOR
EXERCISE
3-2
10
REM
*
TIME SOLUTION KNOWING DISTANCE AND RATE
*
20
D
=
3000
30
R
=
500
40
T
=
D/R
50
PRINT
"THETIME
REQUIRED IS"|T;
"HOURS."
NOTE: Remember
to
IJJhJJ:! each
line.
SAMPLE
RUN FOR
3-2
THE TIME
REQUIRED
IS
6
HOURS.
Note:
In order to
arrive at
the
formula
in line
40
it
is
necessary
to
transpose
D
=
R
*
T
and
express
in
terms of
T.
178

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents