Programming Logic
To run an error - free program, the logic of the program should be very clear. A programmer is said to be good, if his/her programming logic is lucid. To make the conception clear, the following methods are highly necessary before starting a program.
Algorithm
Before solving a problem with the help of a computer, it is essential to plan the solution is a step - by - step manner. A set of instructions to solve a problem is termed as an algorithm. Algorithms can be expressed in different ways, like, by drawing flowcharts using specific symbols or writing the solution as a set of instructions in our native language/English. It is easy to understand and can be implemented in any programming language.
Two distinct kind of algorithms :
1. Pseudocode
2. Flowchart
Pseudocode
Pseudocode allows a programmer to represent logic in his/her native language. It is easier to convert the program logic developed using pseudocode to any high-level language code. Following points have to be taken care into consideration while developing the logic of a program using pseudocode.
To run an error - free program, the logic of the program should be very clear. A programmer is said to be good, if his/her programming logic is lucid. To make the conception clear, the following methods are highly necessary before starting a program.
Algorithm
Before solving a problem with the help of a computer, it is essential to plan the solution is a step - by - step manner. A set of instructions to solve a problem is termed as an algorithm. Algorithms can be expressed in different ways, like, by drawing flowcharts using specific symbols or writing the solution as a set of instructions in our native language/English. It is easy to understand and can be implemented in any programming language.
Two distinct kind of algorithms :
1. Pseudocode
2. Flowchart
Pseudocode
Pseudocode allows a programmer to represent logic in his/her native language. It is easier to convert the program logic developed using pseudocode to any high-level language code. Following points have to be taken care into consideration while developing the logic of a program using pseudocode.
- Pseudocode must be language - independent.
- Indent lines make pseudocode easier to read and understand.
- Pseudocode are meant to concentrate on logic of the program rather than language syntax.
Flowchart
A flowchart is symbolic representation of the step - by - step solution of a given problem. Flow-charting is a method of charting the flow of the steps that the computer follows. A flowchart is a type of map showing which steps in a process precede or follow others. It indicates the flow of the entire process, the sequence of the data input, operations, decisions, results and other relevant information, pertaining to a particular problem.
Symbols used in Flow chart
No comments:
Post a Comment