home *** CD-ROM | disk | FTP | other *** search
/ Java by Example / jbecd.bin / JBE-CD / NTUsers / JBECODE.ZIP / JavaByExample / chap05 / lst5_2.txt < prev    next >
Text File  |  1996-05-07  |  142b  |  7 lines

  1. // Calculate the amount of sales tax.
  2. tax = purchase * SALESTAX;
  3.  
  4. // Add the sales tax to the purchase amount.
  5. total = purchase + tax;
  6.  
  7.