The Structured Approach Flashcards
All 3 cards in this deck
Give two advantages of the structured approach (splitting a program into subroutines).
Any two of: each subroutine can be written and tested on its own; a team can share the work; subroutines can be reused; the program is easier to understand and maintain.
How does the structured approach make a program easier to maintain?
The program is split into subroutines, each doing one task through a clear interface (parameters and return values), so each part can be understood, tested and updated without changing the rest.
What is the structured approach to programming?
Writing a program as modules (subroutines), each doing one task, with clear, well-documented interfaces: parameters pass data in, return values pass data out, and local variables are used inside.