Conclusion Simple Program Design Third Edition A Step-by-Step Approach

Download Report

Transcript Conclusion Simple Program Design Third Edition A Step-by-Step Approach

13
Conclusion
Simple Program Design
Third Edition
A Step-by-Step Approach
13
Objectives
• Revision of the steps required to achieve
good top-down program design
13
Simple Program Design
• The aim of this textbook has been to encourage
programmers to follow a series of simple steps in
order to develop solution algorithms to given
programming problems
• These steps are:
1. Define the problem
2. Group the activities into subtasks or functions. Not all the
activities to be performed may have been listed in the defining
diagram
3. Construct a hierarchy chart. Just as a company director can
change the organization of the company to suit its operation,
so you can change the organization of the modules in the
hierarchy chart
13
Simple Program Design
4. Establish the logic of the mainline of the algorithm. Use
pseudocode and the three basic control structures to
establish this logic. The mainline should show the main
processing functions of the problem and the order in
which they are to be performed
5. Develop the pseudocode for each successive module in
the hierarchy chart
6. Desk check the solution algorithm. This detection of
errors, early in the design process, can save many
frustrating hours during the testing phase. It is
essential that the programmer desk checks the solution
algorithm, yet this step is often ignored
13
Summary
• This chapter has revised the steps
required to achieve good top-down
program design
• Program design is considered good if it is
easy to read and understand and easy to
alter
• If you follow these six steps in the
development of an algorithm, you will
rapidly achieve a high level of competence