Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
docu...
Typing Speed
Week

Target Achieved

1

21

19

2

24

21

3

25

22

4

25

23
Jobs Applied
#

Company

Designation

Applied Date

1

cs3Infomat Pvt. Ltd

Software trainee

13-9-2013

2
3

Current Stat...
Algorithm & flowchart

Waseem hassan
wazeeem456@gmail.com
www.facebook.com/waseem
hassan
twitter.com/waseemhassan
456
in.l...
Algorithm
• An algorithm is just a detailed sequence of
simple steps that are needed to solve a
problem

Flowchart
• Flowc...
Steps to create an algorithm
• First produce a general algorithm
• Refine the algorithm successively to get step
by step d...
Pseudo code
• Pseudo code:Pseudo code is an artificial
and informal language that helps
programmers to develop algorithms....
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...
Flowchart Symbols
Name

Symbol

Use in Flowchart

Oval

Denotes the beginning or end of the program

Parallelogram

Denote...
Example
START

Input
M1,M2,M3,M4

GRADE

N

(M1+M2+M3+M4)/4

If
GRADE<50

PRINT
“pass”

Y

PRINT
“FAIL”

STOP

Step 1: Inp...
Example
ALGORITHM
Step 1:
Step 2:

Step 3:

Input A,B
if (A> B) then
MAX A
else
MAX B
end
Print “The largest value is”, MA...
• 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 ...
Flowchart
START

Input
A,B

Y

MAX

N

if
A>B

MAX

A

Print
“The largest value is”, MAX

STOP

B
If this presentation helped you, please visit our
page facebook.com/baabtra and like it.

Thanks in advance.
www.baabtra.c...
Contact Us
Emarald Mall (Big Bazar Building)
Mavoor Road, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550

Start up Vil...
Algorithm & flow chart
Upcoming SlideShare
Loading in …5
×

Algorithm & flow chart

2,160 views

Published on

Algorithm & flow chart

Published in: Education, Technology, Travel
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,160
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
19
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Algorithm & flow chart

  1. 1. 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
  2. 2. Typing Speed Week Target Achieved 1 21 19 2 24 21 3 25 22 4 25 23
  3. 3. Jobs Applied # Company Designation Applied Date 1 cs3Infomat Pvt. Ltd Software trainee 13-9-2013 2 3 Current Status
  4. 4. Algorithm & flowchart Waseem hassan wazeeem456@gmail.com www.facebook.com/waseem hassan twitter.com/waseemhassan 456 in.linkedin.com/in/waseemh assan 9567850028
  5. 5. 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
  6. 6. 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.
  7. 7. 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”
  8. 8. 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
  9. 9. 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
  10. 10. Example START Input M1,M2,M3,M4 GRADE N (M1+M2+M3+M4)/4 If GRADE<50 PRINT “pass” Y PRINT “FAIL” STOP Step 1: Input M1,M2,M3,M4 Step 2: GRADE (M1+M2+M3+M4)/4 Step 3: if (GRADE <50) then Print “FAIL” else Print “PASS” end
  11. 11. Example ALGORITHM Step 1: Step 2: Step 3: Input A,B if (A> B) then MAX A else MAX B end Print “The largest value is”, MAX
  12. 12. • 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
  13. 13. Flowchart START Input A,B Y MAX N if A>B MAX A Print “The largest value is”, MAX STOP B
  14. 14. 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
  15. 15. 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

×