Thinking Procedurally Flashcards
What are the 5 main steps in the programming process?
1) Defining the problem
2) Planning the solution
3) Coding the program
4) Testing the program
5) Documenting the program
What is decomposition?
The breaking down of a problem into steps so that it is easier to solve
What are examples of planning using decomposition?
1) Modularisation: for program structure and organisation ie. breaking down the problem into subroutines
2) Structured code: for the individual modules ie. code which uses the basic constructs of sequence, selection, iteration
What is Top Down Design / Stepwise Refinement?
Hierarchy diagrams - each process is broken down into components until it cannot be broken down any further
Why is Top Down Design beneficial?
The structure of the program can be quickly explained and understood. Programmers can be allocated different modules.
What does it mean to think procedurally?
Thinking about the order in which certain tasks are completed.
What are 3 examples of decomposition?
Flowcharts, pseudocode, hierarchy charts
What are the steps needed for planning the method of solution?
Identify when decision making is required.
Identify the decisions required for the solution.
Identify the condition associated with a given decision.
Apply logical rules for real world situations.
Ensure steps are in the correct order.
Once you have divided a problem into sub problems, what would you look for and why?
Any pre-written steps (sub-programs)