/* Helene Martin, Garfield AP CS, 2010
	Calculate total owed, assuming 8% tax / 15% tip
	Example of a program with redundant expressions
*/
public class Receipt {
	public static void main(String[] args) {
		System.out.println("Subtotal:");
		System.out.println(38 + 40 + 30);

		System.out.println("Tax:");
		System.out.println(38 + 40 + 30 * .08);
		System.out.println("Tip:");
		System.out.println(38 + 40 + 30 * .15);
		System.out.println("Total:");
		System.out.println(38 + 40 + 30 +
		                  (38 + 40 + 30) * .15 +
		                  (38 + 40 + 30) * .08);
	}
}

