Professional Documents
Culture Documents
The task of expressing the solution of complex problems in terms of simple operations
understood by the computer is called problem solving. The steps involved in problem solving
are: -
1. Problem Definition – A problem can be solved correctly only if it is understood clearly
by the user. It should be clearly defined with specific input/ output explanation.
3. Design of the solution – The solution of the problem should include a sequence of well
defined steps that will input the data, manipulate it and produce the required result.
The 2 commonly used design tools are
a) Algorithm – It is a step by step procedure to solve a problem.
b) Flowchart – It is the pictorial representation of the solution for a given problem.
Advantages of flowchart
1. It provides an excellent means of communication, which is very easy to understand.
2. Easy to convert it into a program.
3. It is independent of any programming language.
4. It is easy to debug.
5. Efficient program maintenance.
2
5. It is used to represent for loop.
IMPORTANT DEFINITIONS
1. Compiler – It is a system software that checks the entire user written program for
errors and once it is error free, it converts it into equivalent machine language program.
2. Source Program – It is a program written by the user in any programming language.
3. Object Program – It is a machine language program generated by the compiler.
4. Syntax – It is the set of rules to be followed while writing a program.
5. Semantic – It refers to the logic of a program.
Types of Errors
1. Syntax Error – It is the wrong usage of syntax while writing a program. It is
detected during compilation phase.
2. Semantic Error/Logical Error – It is the wrong usage of logic while writing a program.
It is detected during execution phase.
3. Runtime Error – It is detected during the execution of the program.
3
4