public class Receipt { public static void main(String[] args) { double subtotal = 38 + 40 + 30; double tax = subtotal * .09; double tip = subtotal * .18; double total = subtotal + tax + tip; // Calculate total owed, assuming 9% tax / 18% tip System.out.println("Subtotal: " + subtotal); System.out.println("Tax: " + tax); System.out.println("Tip: " + tip); System.out.println("Total: " + total); } }