Problems Solving Lecture-1
Problems Solving Lecture-1
Techniques
Introduction
●Before programming, the logic for solving
the problem must be designed.
●The program design is represented by
means of flowcharts, pseudo code, and
structured english.
●Program design lead to the detection of
logical errors.
Algorithm
● Computer-based problem solving should proceed
systematically.
● Algorithm is the sequence of instructions for solving
a problem.
● In another meaning, a step by step progression
towards a solution.
● It specifies the sequence of operations in order to
achieve a goal.
Flowchart Components
Flow Chart Connectors
Pseudo code
● Pseudocode: is a tool that helps in developing
and checking the program logic .
● Pseudo means false or imitation
● Code means program instructions
● It describe the program using english language
and certain programing control words such as
if .. then .. Else and others.
Difference between pseudo code & flowchart
● Pseudo code is in english and uses structures
similar to basic program.
● Flowchart tends to extend all directions and all
paths of instructions.
● Advantages of pseudocode over flowchart:
● Less time consuming.
● Easier to modify.
● Easier to code from pseudocode.
● Easily readable and understandable.