Assignment #27
Code
///Name: Jack Newsom
///Period: 5
///program name: Sequencing
///filename: Sequencing.java
///date completed 9/21/15
import java.util.Scanner;
public class Sequencing
{
public static void main( String[] args)
{
//BROKEN
Scanner keyboard = new Scanner(System.in);
double price, salesTax, total;
System.out.println("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