EasyManua.ls Logo

Radio Shack TRS-80 - Page 146

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...
For
example,
let's
say you want to write a program
that calculates
the
return on
various
investments. The
options might be:
1 —CERTIFICATE
OF DEPOSIT
2
-
BANK SAVINGS ACCOUNT
3
-
CREDIT
UNION
4
-
MORTGAGE
LOAN
The main (or
Control) program
will select
one of these
4
options using an input question,
execute the
correct
subprogram, and print
the
answer. Its
flowchart might be:
{
START
)
ENTER OPTION
CALCULATE
CERTIFICATE
OF
DEPOSIT
CALCULATE
FOR BAM
K
SAVINGS
ACCOUNT
CALCULATE
FOR CREDIT
UNION
CALCULATE
Ft>
H
MORTGAGE
LOAN
PfllNT
RETURN
ON
INVESTMENT
(
""
)
144

Other manuals for Radio Shack TRS-80

Related product manuals