EasyManua.ls Logo

Radio Shack TRS-80 - Page 52

Radio Shack TRS-80
236 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...
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
:
^

Other manuals for Radio Shack TRS-80

Related product manuals