// Tyler Rigsby, CSE 142, Section A // Calculate total owed, assuming 8% tax / 15% tip public class Receipt { public static void main(String[] args) { int subtotal = 38 + 42 + 30; double tax = subtotal * .08; double tip = subtotal * .15; double total = subtotal + tax + tip; System.out.println("Subtotal:"); System.out.println(subtotal); System.out.println("Tax:"); System.out.println(tax); System.out.println("Tip:"); System.out.println(tip); System.out.println("Total:"); System.out.println(total); } }