// A program to calculate the total due from a coffee order. // Includes 10% tax and a 5% "preferred customer" discount. public class CoffeeOrder1 { public static void main(String[] args) { // latte ($5), frappuccino ($6), drip coffee ($2) System.out.println("Subtotal: $" + (5 + 6 + 2)); System.out.println("Tax: $" + ((5 + 6 + 2) * 0.1)); System.out.println("Discount: ($" + ((5 + 6 + 2) * 0.05) + ")"); System.out.println("TOTAL: $" + ((5 + 6 + 2) - ((5 + 6 + 2) * 0.05) + ((5 + 6 + 2) * 0.1))); } }