Radio Shack TRS-80 User Manual page 52

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

Advertisement

30
D
=
3000
40
PRINT
"
BOSTON
TO
SAN
DIEGO
"
50
PRINT
60
PRINT
"RATE (MPH)",
" T
I
ME
{
HOURS
)
"
,
" D
I
STANCE
C
M
I
LES
)
"
70
PRINT
80
FOR
R =
200 TO 1000 STEP 100
90
T
=
D/R
100
PRINT
R
,T,0
110
NEXT
R
Enter
the
program and
RUN.
It
is
really
solving the
problem from Chapter
3
nine times
in
a
row,
for different values,
and
printing
out
the
result.
Your
screen
should look
like this:
BOSTON
TO
SAN
DIEGO
RATE (MPH)
TIME (HOURS)
DISTANCE
(
MILES
)
200
15
3000
300
10
3000
400
7.5
3000
500
6
3000
600
5
3000
7
00
4
.28571
3000
800
3.
75
3000
900
3
.
33333
3000
1000
3
3000
50
Haw
about
tbat
,
, .
?
Try doing
that
on
the old
slide
Bdeetbandcafamfetorl
.
;;;•
:-v\~^.i
:
^

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents