home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java by Example
/
jbecd.bin
/
JBE-CD
/
NTUsers
/
JBECODE.ZIP
/
JavaByExample
/
chap05
/
lst5_2.txt
< prev
next >
Wrap
Text File
|
1996-05-07
|
142b
|
7 lines
// Calculate the amount of sales tax.
tax = purchase * SALESTAX;
// Add the sales tax to the purchase amount.
total = purchase + tax;