160Chapter 6Problem Solving and Algorithm DesignSummary of MethodologyThe top-down methodology can be broken down into four major steps:1. Analyze the ProblemUnderstand the problem! List the information you have to work with. Thisinformation is probably going to be the data in the problem. Specify whatthe solution is to look like. If it is a report, specify the format. List anyassumptions that you are making about the problem or the information.Think. How would you solve the problem by hand? Develop an overallalgorithm or general plan of attack.2. Write the Main ModuleUse English or pseudocode to restate the problem in the main module. Usemodule names to divide the problem into functional areas. If the mainmodule is too long, you are including too much detail for this level. Intro-duce any control structures that are needed at this point. Re-sequence logi-cally, if needed. Postpone details to lower levels.
This is the end of the preview.
access the rest of the document.