/* Helene Martin, Garfield AP CS, 2009
	Calculate total owed, assuming 8% tax / 15% tip
	Variables increase readability and ease of edit
*/
public class Receipt2 {
	public static void main(String[] args) {
		double subtotal = 38 + 40 + 30;
		double tax = .08 * subtotal;
		double tip = .15 * subtotal;
		double total = subtotal + tax + tip;
		
		// Calculate total owed, assuming 8% tax / 15% tip
		System.out.println("Subtotal:");
		System.out.println(subtotal);

		System.out.println("Tax: \n" + tax);
		System.out.println("Tip: \n" + tip);
		System.out.println("Total: \n" + total);
	}
}

