BasicFlowcharting
•   (Flowcharting)•••
••••
1.2.3.4.   -5.6.
•    System Flowchart)       Program Flowchart)
1/3)•         3    10         10              ?
(2/3)•
•            (3/3)    –    –   -    –   -
2             (System flowchart)                (Program flowchart)
(System•    flowchart)••
•    100
•    (Program flowchart)•
•          = 0.5 *   *    100
= 0.5 *   *
•••••
•    (decision table)
(1/13)••                    American    National Standard Institute (ANSI)
(2/13)                START                             1.                STOP                             2.             ...
(3/13)             C=A+B                                   1.         A              Sum = 0                              ...
(4/13)            print A             A(Document   display A , B)                                A,                       ...
(5/13)            read A     A = Age(Comment)                                 A              read A(ManualInput)
(6/13)              for i =1 to 100             i              sum = sum + i     1                                      1 ...
(7/13)             write A                       A               A(In-Page              A=3      Aconnector)              ...
(8/13)           read A       1.          A          punch B , C                             1                        2.(P...
(9/13)            read ID ,      ID ,              name                        name(Punchedtape)
(10/13)(Magnaticdisk)
(11/13)                findGrade                            findGra(Predefine                  deProcess)
(12/13)(AuxiliaryOperation)
(13/13)(Communication Link)
•    (1/2)    START            read age                        false            age > 60                 true        “You ...
•    (2/2)        START       sum =         0       i = 1 to 10      sum = sum         +i          i         sum         S...
•    (3/2)•
•                 (Sequence)•               /        /  (Selection/Decision/Condition)•           (Iteration / Loop)
(1/3)•
(2/3)START A=5              A       5 B=3              B       3C=A+B     A       Bprint C       C STOP
(3/3)START A,B          A, BC=A+B                 A       Bprint C                     C STOP
•1.                                        --> <                    >2.                                       --> <       ...
3.     –     –4.     –   Last_meter     –   Curr_meter     –   Num_meter     –   Electric_fee
5.     1.     2.               last_meter     curr_meter     3.        num_meter = curr_meter –        last_meter     4.  ...
Flow chart              START            Last_meter ,             Curr_meterNum_meter = Curr_meter – Last_meter   Electric...
•   (IF - THEN)
(1/5)
(2/5)   START read age               age  age > 60                false   age        true“You are old”                    ...
(3/5)                            ans       GoodLuck   ans = “GoodLuck”Welcome Manager         Welcome                     ...
(4/5)•                 %•    1.    2.         -                     =             (       10/100)    3.                =
(5/5)            START                           A          read                      bonus = salary * 3       name ,salar...
•          IF –    THEN
IF      THEN  BEGIN               ;               ; END;
IF       THENELSE BEGIN                ;                ; END;
(1/6)•
(2/6)                                                 •   sex =1          False                   True                    ...
(3/6)                  START                read age                       age        false                  true         ...
(4/6)                             Do you like Pascal                                                                 Do yo...
(5/6)•         %                               5000             5%•    1.    2.                    < 5000         -       ...
(6/6)                    START                                        A                    read                           ...
(•            IF)                       False              True            False              True    False           True
(                                   IF)                                                   Score = mid + final             ...
(•    CASE)
(                         CASE)                            Score = mid + final                                  score  80....
•    (Controlled Loop)•                       (Pre-Test    Condition)•                        (Post-    Test Condition)
•    Next
•   N    1                    1             5                       Next        For N =1 , 5    N         Print N         ...
•           False    True
•                       N=1         N <= 5    –             N                                  False    –         N    1  ...
•    False            True
–                         N=1            N    –        N   1                        Print N•                       N = N+1...
Upcoming SlideShare
Loading in …5
×

Flowchat

964
-1

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
964
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Flowchat

  1. 1. BasicFlowcharting
  2. 2. • (Flowcharting)•••
  3. 3. ••••
  4. 4. 1.2.3.4. -5.6.
  5. 5. • System Flowchart) Program Flowchart)
  6. 6. 1/3)• 3 10 10 ?
  7. 7. (2/3)•
  8. 8. • (3/3) – – - – -
  9. 9. 2 (System flowchart) (Program flowchart)
  10. 10. (System• flowchart)••
  11. 11. • 100
  12. 12. • (Program flowchart)•
  13. 13. • = 0.5 * * 100
  14. 14. = 0.5 * *
  15. 15. •••••
  16. 16. • (decision table)
  17. 17. (1/13)•• American National Standard Institute (ANSI)
  18. 18. (2/13) START 1. STOP 2. read name(Terminal) display area 1. name 2.
  19. 19. (3/13) C=A+B 1. A Sum = 0 +B C(Process) false 2. i <= 10 true sum i 0 i
  20. 20. (4/13) print A A(Document display A , B) A, B
  21. 21. (5/13) read A A = Age(Comment) A read A(ManualInput)
  22. 22. (6/13) for i =1 to 100 i sum = sum + i 1 1 i 100(Preparation) sum i
  23. 23. (7/13) write A A A(In-Page A=3 Aconnector) 1
  24. 24. (8/13) read A 1. A punch B , C 1 2.(Punch B,C punchcard) bi b=1 , 1 …n B1 , B2 , Bn n
  25. 25. (9/13) read ID , ID , name name(Punchedtape)
  26. 26. (10/13)(Magnaticdisk)
  27. 27. (11/13) findGrade findGra(Predefine deProcess)
  28. 28. (12/13)(AuxiliaryOperation)
  29. 29. (13/13)(Communication Link)
  30. 30. • (1/2) START read age false age > 60 true “You are old” STOP
  31. 31. • (2/2) START sum = 0 i = 1 to 10 sum = sum +i i sum STOP
  32. 32. • (3/2)•
  33. 33. • (Sequence)• / / (Selection/Decision/Condition)• (Iteration / Loop)
  34. 34. (1/3)•
  35. 35. (2/3)START A=5 A 5 B=3 B 3C=A+B A Bprint C C STOP
  36. 36. (3/3)START A,B A, BC=A+B A Bprint C C STOP
  37. 37. •1. --> < >2. --> < > ----------------------------------------------------- :< > :< >
  38. 38. 3. – –4. – Last_meter – Curr_meter – Num_meter – Electric_fee
  39. 39. 5. 1. 2. last_meter curr_meter 3. num_meter = curr_meter – last_meter 4. electric_fee = num_meter * 2.5 5. num_meter , electric_fee 6.
  40. 40. Flow chart START Last_meter , Curr_meterNum_meter = Curr_meter – Last_meter Electric_fee = Num_meter * 2.5 Num_meter , Electric_fee STOP
  41. 41. • (IF - THEN)
  42. 42. (1/5)
  43. 43. (2/5) START read age age age > 60 false age true“You are old” Y STOP
  44. 44. (3/5) ans GoodLuck ans = “GoodLuck”Welcome Manager Welcome Manager ExitPassword System Exit Password System
  45. 45. (4/5)• %• 1. 2. - = ( 10/100) 3. =
  46. 46. (5/5) START A read bonus = salary * 3 name ,salary false Name , salary , salary < 5000 bonus truesalary = salary + (salary*10/100) STOP A
  47. 47. • IF – THEN
  48. 48. IF THEN BEGIN ; ; END;
  49. 49. IF THENELSE BEGIN ; ; END;
  50. 50. (1/6)•
  51. 51. (2/6) • sex =1 False True Sex = 1 MaleFemale = Female + 1 Male = Male +1 • sex =1 Female
  52. 52. (3/6) START read age age false true age > 60 age“You are young” “You are old” Yo Yo STOP
  53. 53. (4/6) Do you like Pascal Do you like Pa ans ans ans = „y‟ OR ans=„Y‟ ansI‟m sorry to hear that Thank You - Thank you - I’m sorry to hear t Good Bye Goodbye
  54. 54. (5/6)• % 5000 5%• 1. 2. < 5000 - = 10/100 - = 5/100 3. = +( * ) 4. =
  55. 55. (6/6) START A read salary = salary+(salary * rate) name ,salary false true bonus = salary * 3 salary < 5000rate = 5 / 100 rate = 10 / 100 Name , salary , bonus A STOP
  56. 56. (• IF) False True False True False True
  57. 57. ( IF) Score = mid + final false true Score >=80 false true Score >=70 Grade = ‘A’ false true Score >=60 Grade = ‘B’ false true Score >=50 Grade = ‘C’Grade = ‘F’ Grade = ‘D’
  58. 58. (• CASE)
  59. 59. ( CASE) Score = mid + final score 80..100 70..79 60..69 50..59 0..49Grade = ‘A’ Grade = ‘B’ Grade = ‘C’ Grade = ‘D’ Grade = ‘F’
  60. 60. • (Controlled Loop)• (Pre-Test Condition)• (Post- Test Condition)
  61. 61. • Next
  62. 62. • N 1 1 5 Next For N =1 , 5 N Print N Next
  63. 63. • False True
  64. 64. • N=1 N <= 5 – N False – N 1 N <=5 (N=N+1) True Print N• N = N+1
  65. 65. • False True
  66. 66. – N=1 N – N 1 Print N• N = N+1 N>5 False N>5 True
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×