// Helene Martin, CSE 142 // Well-structured program to display a recipe. // Demonstrates procedural decomposition to capture structure and reduce redundancy. public class BakeCookies { public static void main(String[] args) { makeBatter(); bakeCookies(); bakeCookies(); bakeCookies(); decorateCookies(); } // bake the cookies public static void bakeCookies() { System.out.println("Set the oven temperature."); System.out.println("Set the timer for 10 minutes."); System.out.println("Place the cookies into the oven."); System.out.println("Allow the cookies to bake."); System.out.println(); } // make the batter public static void makeBatter() { 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."); System.out.println(); } // decorate the cookies public static void decorateCookies() { System.out.println("Mix the ingredients for the frosting."); System.out.println("Spread frosting and sprinkles onto the cookies."); System.out.println(); } }