EasyManua.ls Logo

Radio Shack TRS-80 - Page 182

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...
SAMPLE
ANSWER
FOR
EXERCISE
3-5:
A bare-minimum
effort
might
look
like this: (C
=
checks, D
=
deposits,
B
=
old balance, N
=
new
balance.)
10 B=225
20 C=17+35+225
30 D=40+200
40 N=B-C+D
50 PRINT "YOUR NEW BALANCE IS
$";N
SAMPLE
ANSWER
FOR
EXERCISE
4-1
:
10 REM
*
CAR MILES SOLUTION PROGRAM
*
20 N
=
1000000
30
D
=
10000
40
T
=
N
*
D
50
PRINT
"THE
TOTAL NUMBER
DF MILES DRIVEN
IS
"
SAMPLE
RUN
FOR 4 1
THE TOTAL NUMBER OF MILES DRIVEN IS 1E+10
Note: As
discussed earlier, this answer
is the
number 1
followed by
ten
zeroes.
10,000,000,000.
Ten Billion. The Computer will not print any
numbers over
999,999
without converting them to exponential nota-
tion.
^
B
j
m(
|
rrmi tii«aB
BWMi
W
Mjf|
|
jM
aM|aH
B^
SAMPLE ANSWER FOR
EXERCISE
4-2:
20 N
=
1E+6
30 D
=
1E+4
180

Other manuals for Radio Shack TRS-80

Related product manuals