2. Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
document of baabtra âMentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt .
Ltd
6. Algorithm
âą An algorithm is just a detailed sequence of
simple steps that are needed to solve a
problem
Flowchart
âą Flowchart is the graphical representation of an
algorithm
7. Steps to create an algorithm
âą First produce a general algorithm
âą Refine the algorithm successively to get step
by step detailed algorithm that is very close to
a computer language.
8. Pseudo code
âą Pseudo code:Pseudo code is an artificial
and informal language that helps
programmers to develop algorithms.
Pseudo code is very similar to everyday
English.
âą Input a set of 4 marks
âą Calculate their average by summing and dividing by 4
âą if average is below 50
Print âFAILâ
else
Print âPASSâ
9. Detailed Algorithm
Step 1:
Step 2:
Step 3:
Input M1,M2,M3,M4
GRADE (M1+M2+M3+M4)/4
if (GRADE < 50) then
Print âFAILâ
else
Print âPASSâ
end
10. Flowchart Symbols
Name
Symbol
Use in Flowchart
Oval
Denotes the beginning or end of the program
Parallelogram
Denotes an input operation
Rectangle
Denotes a process to be carried out
e.g. addition, subtraction, division etc.
Diamond
Denotes a decision (or branch) to be made.
The program should continue along one of
two routes. (e.g. IF/THEN/ELSE)
Hybrid
Denotes an output operation
Flow line
Denotes the direction of logic flow in the program
13. âą The expression A>B is a logical expression
âą it describes a condition we want to test
âą if A>B is true (if A is greater than B) we take the action on left
âą print the value of A
âą if A>B is false (if A is not greater than B) we take the action
on right
âą print the value of B
15. If this presentation helped you, please visit our
page facebook.com/baabtra and like it.
Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baabte.com
16. Contact Us
Emarald Mall (Big Bazar Building)
Mavoor Road, Kozhikode,
Kerala, India.
Ph: + 91 â 495 40 25 550
Start up Village
Eranakulam,
Kerala, India.
Email: info@baabtra.com
NC Complex, Near Bus Stand
Mukkam, Kozhikode,
Kerala, India.
Ph: + 91 â 495 40 25 550