Assignemnt #27 and Variables Only Hold Values
Code
///Name: Dakota Donahue
///Period: 5
///Project Name: Sequencing
///File Name: Sequencing
///Date: 9/22/2015
import java.util.Scanner;
public class Sequencing
{
public static void main( String[] args )
{
// BROKEN
Scanner keyboard = new Scanner(System.in);
double price = 0, 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 );
}
}