example - salestax.java, salestax.php, salestax.htm c:\program files\apache group\apache2\htdocs\test\salestax.java. import java.util.*;import java.text.*;public class salestax{ private double tax = 0.0; private double price = 0.0; private
example - salestax.java, salestax.php, salestax.htmc:\program files\apache group\apache2\htdocs\test\salestax.java.
import java.util.*;import java.text.*;public class salestax{    private double tax = 0.0;    private double price = 0.0;    private double salestax = 0.0;    public salestax()    {}    public string salestax(double price, double salestax)    {        tax = price * salestax;        numberformat nf = null;        nf = numberformat.getcurrencyinstance();        string priceout = nf.format(price);        string taxout = nf.format(tax);        nf = numberformat.getpercentinstance();        string salestaxout = nf.format(salestax);        string str = sales tax of  + salestaxout +             on  + priceout +  equals  + taxout + .;        return str;    }}
c:\program files\apache group\apache2\htdocs\test\salestax.php
salestax($price, $tax);}?>
c:\program files\apache group\apache2\htdocs\test\salestax.htm.
price: ($)
tax rate: (0.1 for 10%)
   
 
   