In: Computer Science
In pseudo-code, design an algorithm for finding baking a cake.
Solution:
Algorithm for finding baking a cake:
Step 1: Start
First, set out ingredients
3/4 cups butter or margarine, softened
3 eggs
2 cups sugar
2 cups flour
3/4 cup unsweetened cocoa powder
1 teaspoon baking soda
3/4 teaspoon baking powder
2 teaspoon vanilla
1 1/2 cup milk
Step 2: Pre-heat oven to 350 degrees.
Step 3: Grease and flour three 6" * 1 1/2" round cake pans.
Step 4: Mix together flour, cocoa powder, baking powder and baking soda. Set aside.
Step 5: In a large bowl, beat butter, eggs and vanilla.
Step 6: Gradually add sugar.
Step 7: Beat on medium to high speed for about 3-4 minutes until well mixed.
Step 8: Alternately combine in flour mixture and milk to batter while beating.
Step 9: Continue to beat until batter is smooth.
Step 10: Pour equal amount of batter into greased and floured round cake pans.
Step 11: Bake 30 to 35 minutes.
Step 12: Check with the toothpick to see if it is done. Bake a few minutes more, if needed.
Step 13: Remove from oven and allow cakes to cool in pans for a few minutes.
Step 14: Done.
Please give thumbsup, if you like it. Thanks.