Assignment 27

Code

    ///Name:Nick Quijivix
    ///Period:7
    ///Date:10/6/2015    
    import java.util.Scanner;
    
    public class Sequencing
    {
        public static void main( String[] args )
        {
            // not BROKEN
    
            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

Assignment 27