Assignemnt #27

Code

///Colin Hinton
///5th Period
/// Variables Only Hold Values
/// VOHV.java
/// 9/23/2015

import java.util.Scanner;

class VOHV
{
    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 * .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

Assignment 1