2-11 Sale

Post date: Jan 18, 2014 6:15:27 PM

//2-11 Sale

package sale;

public class Sale {

    // This program demonstrates the double data type.

    public static void main(String[] args) {

        // TODO code application logic here

        double price, tax, total;

        price=29.75;

        tax =1.76;

        total =31.51;

        System.out.println("The price of the item " +

        "is " +price);

        System.out.println("The tax is " + tax);

        System.out.println("The total is " + total );

    }

}