Problem solving aspects
1.
Identify the problem
2.
Understand the
problem
3.
Identify
alternative ways to solve the problem
4.
Select the best
way to solve the problem from the list of alternative solutions.
5.
List instructions
that enable you to solve the problem using the selected solution.
6.
Evaluate the
solution.
Top Down Design
A top-down design is generally a plan made in plain, simple
English for the program. It is very important to note that a top-down design
must be independent of any programming language. The top-down design must never
incorporate references to library functions or syntactic elements specific to a
particular language.
That is the reason why top-down designs are written in plain
English. The concept driving a top-down design is to break up the task that a
program executes into a very few extensive subtasks.
The highest level is known as the main module, top level or level
0. At this point, the volume of subtasks must be small. Most programs at this
level usually include three to seven subtasks. For small-sized programs, the
volume of subtasks must be at the low end of the mentioned range.
Division of tasks into subtasks essentially splits the problem
into various smaller programs, which helps developers to easily code these
simpler parts. It is usually possible that many of these subtasks are so basic
that they can immediately determine how to write the code to complete that
part.
However, this is generally not the case at the top level. If a
subtask takes more than a very few lines of code, it is recommended to repeat
the subdivision process. Typically, for every subtask at top level, a new
module is started at level 1. These subtasks are then considered individually,
and yet again divided into various other subtasks. This subdivision and new
level creation processes should be continued until the coders can implement
every portion of the problem using computer code.
No comments:
Post a Comment