Structured and Unstructured Maintenance With Example
Structured and Unstructured Maintenance With Example
overall
quality
of
Difficulties due
methodology
Example:
to
development
without
well-defined
Top-down programming
Top-down programming is the opposite of bottom-up
programming. It refers to a style of programming where an
application is constructed starting with a high-level description of
what it is supposed to do, and breaking the specification down
into simpler and simpler pieces, until a level has been reached
that corresponds to the primitives of the programming language
to be used.
Disadvantages of top-down programming
Top-down programming complicates testing. Noting executable
exists until the very late in the development, so in order to test
what has been done so far, one must write stubs .
Furthermore, top-down programming tends to generate modules
that are very specific to the application that is being written, thus
not very reusable.
Bottom-up programming
Example 1:
Bottom-up approach:
In this approach the individual base elements of the system
Are first specified in great detail. These elements are
Then linked together to form larger subsystems, which then
Example 2:
Bottom up design begins the design with the lowest level
modules or subsystems, and progresses upward to the main
program, module, or subsystem. With bottom up design, a
structure chart is necessary to determine the order of
execution, and the development of drivers is necessary to
complete the bottom up approach.
Question: 3
example.
Structured
Programming
with
structured
programming,
uses
structured
programming
techniques for program flow, and adds more structure for data to
the model.
Example:
In a normal programming language, if you want the program do to something when a
user clicks the mouse, you will tell the program to GOTO a location within the code lines
to excuse then after this code executes, you will use GOTO to go to somewhere else.
Programming languages that use this technique usually called "Step Driven
Programming Language.
On the other hand, Structured programming use functions! You simply call the function,
it executes then you continue working. When you use this technique, you will find out
that your program is simply divided (structured) into function. That's why it's
STRUCTURED!