# Yorkville High School Computer Science

ASSIGNMENTS: No Current Assignments

## Computer Programming I :: Projects :: Computational Thinking

Lesson
Due: Jan 14

### Problem

As a group, create two algorithms. One algorithm should be a recipe. The recipe, however, should include everything the cook should do including gathering materials.

The second algorithm will be presented in class on the due date. This algorithm should be how to do something physical. For example, you could explain how to do a jumping jack. When you present this algorithm in class, the class will attempt to follow the steps.

### Example Algorithms

#### Churro Recipe from Allreceipes.com

1. Gather the following materials:
1. 1 cup water
2. 2 1/2 tablespoons white sugar
3. 1/2 teaspoon salt
4. 2 tablespoons vegetable oil
5. 1 cup all purpose flour
6. 2 quarts oil for frying
7. 1/2 cup white sugar
8. 1 teaspoon ground cinnamon
9. Small saucepan
10. Deep-fryer or deep skillet
11. Pastry bag
12. Paper towels
2. Combine water, 2 1/2 tablespoons white sugar, 1/2 teaspoon salt, and two tablespoons vegetable oil in a small saucepan on medium heat.
3. Bring water in saucepan to a boil and remove the saucepan from heat.
4. Stir flour into the saucepan until the mixture forms a ball.
5. In a deep-fryer or deep skillet, heat oil for frying to 375ºF (190ºC).
6. Put dough into the pastry bag.
7. Pour strips of dough using the pastry bag into the hot oil.
8. Fry the strips of dough until they appear golden.
9. Place golden strips of dough on flat paper towels to dry.
10. Combine 1/2 cup of sugar and 1 teaspoon of cinnamon.
11. Roll dried dough strips in the cinnamon and sugar mixture to finish each churro.

#### How to Make a Putt in Golf from Instructables

1. Find your golf ball on the putting green.
2. Determine the direction the green slopes between your ball and the hole.
3. Line up your putter behind the ball facing the direction you want to putt the ball.
4. Line up your toes parallel with the line where you want to putt the ball.
5. Swing the putter away from the ball 1 inch for every two feet you are away from the hole.
6. Move the putter forward in a straight line to hit the ball.