// Marty Stepp // CSE 142, Autumn 09, Oct 2 // This program displays a delicious recipe for baking cookies. public class BakeCookies { // the overall "recipe" public static void main(String[] args) { batter(); bake(); bake(); decorate(); } // Step 1: Make the cake batter. public static void batter() { System.out.println("Mix the dry ingredients."); System.out.println("Cream the butter and sugar."); System.out.println("Beat in the eggs."); System.out.println("Stir in the dry ingredients."); } // Step 2: Bake cookies (one batch). public static void bake() { System.out.println("Set the oven temperature."); System.out.println("Set the timer."); System.out.println("Place a batch of cookies into the oven."); System.out.println("Allow the cookies to bake."); } // Step 3: Decorate the cookies. public static void decorate() { System.out.println("Mix ingredients for frosting."); System.out.println("Spread frosting and sprinkles."); } }