3.13 Developing Procedures
Procedures help manage complexity through procedural abstraction, which reduces repeated code and increases code readability.
How does procedural abstraction manage complexity?
- It provides the ability to execute a procedure only knowing what it does but not how it works.
- It generalizes code using parameters. In other words, the same code can be run with different values for a specific result.
- It provides the ability to divide large problems into subproblems that each can be solved using an individual procedure. This is called modularity.
Practice problems can be found in this Khan Academy link.
Go Back