Unit 10 · Lesson 8
Build the idea
Start with the concept and its key vocabulary.
A complete solution becomes manageable when it is decomposed. First identify inputs, processes and outputs. Then name small tasks such as getValidatedCount, calculatePrice and displayResult. Each sub-program should have clear parameters and return values, while the main program coordinates them. The final solution can combine sequence for ordered steps, selection for decisions and iteration for repetition. Meaningful names, constants, comments, indentation and reusable sub-programs also make it easier to maintain.
Breaking a problem into smaller manageable parts that can be solved individually.
Identifying the required steps and the sequence in which they must be completed.
The controlling part that gathers data and calls the required sub-programs.
A complete program organised as ordered instructions and reusable sub-programs.
How easy a program is to understand, update and fix after it has been written.