Structured Programming Flashcards
What do structure diagrams show?
Smaller tasks of a larger program
How are structure diagrams made?
By decomposing the program into manageable modules
These modules are decomposed further into individual tasks
Simple Sub programs
To carry out an individual task
Then the rest of the program can be designed using these sub programs
Advantages of Structure Diagrams
Coding is easier - simple tasks
Each module can be worked on and written independently by lots of programmers
Easier to test
Can reuse sub programs for other programs
Code in structure programming is well-maintained. What is a well -maintained program?
Makes it easier for other programmers to understand what the program does.
What makes a program well - maintained?
Comments
Indentation
Variables, sub programs, parameters
Sub programs
Maintability: Comments
To explain the key features of the program
Maintainability: Indentation
To seperate different statements in a program
Maintainability: Variables, sub programs, parameters
Should be named well to help programmer understand what they do