Algorithm
What do a recipe and a computer program have in common?
Both are algorithms: a finite, ordered sequence of instructions leading to a result. A recipe says to add, mix, and bake in order; a program adds, compares, and displays. Following the steps in the correct order is enough to get the dish, or the calculation you want.