// Allison Obourn
// CS& 141, Autumn 2021
// Lecture 2

// This program prints out the subtotal, tax, tip and total of a restaurant
// bill

public class Receipt {
    public static void main(String[] args) {
        // Calculate total owed, assuming 8% tax / 15% tip
        double subtotal = 38 + 40 + 30;
        double tax = subtotal * .08;
        double tip = subtotal * 0.15;
        
        System.out.println("Subtotal: " + subtotal);
        System.out.println("Tax: " + tax);
        System.out.println("Tip: " + tip);
        System.out.println("Total: " + (subtotal + tip + tax));
    }
}
