EasyManua.ls Logo

Radio Shack TRS-80 - Page 180

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

Other manuals for Radio Shack TRS-80

Related product manuals