Assignment #27 and Variables Only Hold Values

Code

    ///Name: Tim Gibson
    ///Period: 6
    ///Project Name: Variables only hold values
    ///File Name: VariableValues.java
    ///Date Finished: 9/23/15
        
    import java.util.Scanner;
    public class VariablesValues
    {
        public static void main( String[] args )
        {
            
             Scanner keyboard = new Scanner(System.in);
             double price, salesTax, total;
     
             System.out.print( "How much is the purchase price? " );
             price = keyboard.nextDouble();
             
             salesTax = price * 0.0825;
             total = price + salesTax;
     
             System.out.println( "Item price:\t" + price );
             System.out.println( "Sales tax:\t" + salesTax );
             System.out.println( "Total cost:\t" + total );
         }
     }
    

Picture of the output

Assignment27