Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 5

Planning a Computer program and

problem solving.

• Planning means creating an image about what you will do in


future.
In computer programming it means creating an image about how
you will create a specific program.

Planning and problem solving of computer can be divided into


three types.
* Algorithms
* Flow Charts
* Pseudo codes.
Alograthims
 It is a set of well defined instructions in a
sequence to solve a problem.
 An algorithm should have
• A clear starting point,
• Clear processing steps.
• A clear stopping point.
 It is written in a format that is closer to higher
level language.
Forexample
Step 1: Start
Step 2: Declare variables number 1, number 2 and
sum
Step 3: Read values.
Step 4: Add number 1 and number 2 and store in
sum
Step 5: Display Sum
Step 6: Stop
Flow Charts
 It is a visual representation of algorithm .
 You can also say that is the diagrammatic
representation of an algorithm.
 Importance of flow chart:
• Using flow chart technique the sequence of
program can be easily determined.
• Different Symbols are used to show the flow of
program.
Pseudo Codes:
 It is a simple way of writing a program code in
a syntax closer to high level language.
 It does not use program language syntax.
 It is a simple phrase to plan our program
before we actually develop a program.
 A pseudo code:
• Helps to understand the program easy way.
• Is easy to understand.
• Is generally short and precise.

You might also like