Then, when we click the Execute button, they are evaluated, and we see whether the program works properly on them. But testing can reveal syntax errors, run-time problems, and logical mistakes. For faulty outputs, we must pay special attention to our program examples. In either case, we may have to step through the entire program development again. Figure shows what we get after we have developed the program according to our recipe.
Figure summarizes the recipe in tabular form.
It should be consulted whenever we design a program. The design recipe is not a magic bullet for the problems we encounter during the design of a program. It provides some guidance for process that can often appear to be overwhelming. The most creative and most difficult step in our recipe concerns the design of the program's body. At this point, it relies heavily on our ability to read and understand written material, on our ability to extract mathematical relationships, and on our knowledge of basic facts.