Title: FLOWCHART
1FLOWCHART
2Outline
- Element of computer
- Computer language Interpreter
- Analysis Algorithm
- Algorithm structure
3Element of computer
4Computer language Language Translator
- Computer language
- Machine Language
- Low Level Language
- High Level Language
- Language Translator
- Assembler
- Compiler
- Interpreter
5Analysis Algorithm
- Analysis
- Answer Analysis
- Data Analysis
- Process Analysis
- Debug Analysis
- Algorithm
- Flowchart
- Pseudo code
6Introduction to Flowchart
- A flowchart is a common type of chart, that
represents an algorithm or process, showing the
steps as boxes of various kinds, and their order
by connecting these with arrows. Flowcharts are
used in analyzing, designing, documenting or
managing a process or program in various fields
7Types of flowcharts
- Consist of
- Document flowcharts, showing a document flow
through system - Data flowcharts, showing data flows in a system
- System flowcharts, showing controls at a physical
or resource level - Program flowchart, showing the controls in a
program within a system
8Symbol
- Start and end symbols Represented as lozenges,
ovals or rounded rectangles, usually containing
the word "Start" or "End", or another phrase
signaling the start or end of a process, such as
"submit enquiry" or "receive product". - Arrows Showing what's called "flow of control" in
computer science. An arrow coming from one symbol
and ending at another symbol represents that
control passes to the symbol the arrow points to.
9Symbol
- Processing steps Represented as rectangles.
Examples "Add 1 to X" "replace identified
part" "save changes" or similar. - Input/Output Represented as a parallelogram.
Examples Get X from the user display X. - A Manual input represented by parallelogram, with
the top irregularly sloping up from left to
right. An example would be to signify data-entry
from a form
10Symbol
- Conditional or decision Represented as a diamond
(rhombus). These typically contain a Yes/No
question or True/False test. This symbol is
unique in that it has two arrows coming out of
it, usually from the bottom point and right
point, one corresponding to Yes or True, and one
corresponding to No or False. - A Display Output represented by many rectangle
11Flowchart Symbols
- Symbols of flowchart to standard from ANSI (The
American National Standard Institute)
Symbols Description
Processing ????????? ????????
Auxiliary Processing ??????????????
12Flowchart Symbols
Symbols Description
Subroutine Processing ???????????????????? ???????? ????
Input/Output Data ?????? ??????????????????????? ???????????????
Internal Storage ????????????
Decision Symbol ??????????? ??????????????
13Flowchart Symbols
Symbols Description
Preparation Symbol ???????????? ??????????? ?????????????????????????????????
Manual Input ??????????????????? ???????????? ????????????????
Manual Control ????????????????????? ????????? ???????????????????
Document Output ????????????, ???????????? ????????????
14Flowchart Symbols
Symbols Description
More Document ????????????????????
Monitor ???????????
Card ??????????????????? ????????????
Tape ??? (????????????????)
15Flowchart Symbols
Symbols Description
Start/End Symbol ????????/???????, ?????????????????? ??????
Connection Symbol ??????????????????????????
Connection Symbol ??????????????????????
???????????????????
16Flowchart Symbols
Symbols Description
????
?????????
??????????
???
17Flowchart Symbols
Symbols Description
????
??????????????
?????????
??????????????????????????????
18Flowchart Symbols
Symbols Description
?????????????
?????????????????????????
Flow Line ????????????????????
Comment Line ????????????????????????
19Usually Symbols
Read
Reading of Keyboard
Read
Read
Reading of other tools
Reading data of Symbols by Keyboard Other tools
20Usually Symbols
Display
Display on Monitor
??????...
Display
Display on Printer
Display
??????...
Display
Display on other tools
Display data of Symbols by Keyboard Other tools
21Natural Language
- Find x from equation x (ab-c)/100 if a, b,
c manual input from keyboard and display x on
monitor.
Start
Program Sample Uses crt Var a, b, c, x
real Begin Clrscr Readln(a,b,c) x
(ab-c)/100 Writeln(x82) End.
Input a, b, c
x lt- (ab-c)/100
x
End
22Algorithm structure
- Sequential
- Step to Step
- Selection
- Select part to true and false
- Repetition
- Loop
23Sequential
- Summations of 2 number define a, b by a, b
manual input from keyboard and display answer on
monitor.
24Selection
- Consist of 2 selection
- if
- switch
25if structure (Single Selection )
26if structure (Single Selection )
- Input number 1 integer manual input from
keyboard, brings the number to check number is 0,
if true display Greater than Zero on monitor
27if structure (Double Selection )
28if structure (Double Selection )
- Input number 1 integer manual input from
keyboard, brings the number to check number is 0,
- if true display Greater than Zero
- and then false display Less than or Equal to
Zero on monitor
29Multi-Selection (if/else if/ else .. Structure)
30Multi-Selection (if/else if/ else .. Structure)
- Finding Grade
- 0-49 E
- 50-59 D
- 60-69 C
- 70-79 B
- 80-100 A
- Manual input from keyboard and display on monitor
31case/switch Structure
32case/switch Structure
- Manual input from keyboard and display on monitor
- Choice 1
- Choice 2
- Choice 3
- Choice 4 /
33Repetition
- for
- while
- do .. while/repeat .. until
34while .. Structure
35while .. Structure
- Summations of number 1 10 with while loop
36do while Structure repeat until Structure
37do while Structure repeat until Structure
- Summations of number 1 10 with do-while loop
38for Structure
39for Structure
- Summations of number 1 10 with do-while loop
40exercise
- 1. ?????????????????????????????????????
???????????????????????????? ???????????????????
1 50 ????? ?????????? 4.25 ??? 51 100 ?????
?????????? 3.25 ??? ??????? 101 ???????????
?????????? 2.25 ???
41exercise
- 2.?????????????????????????????????????
??????????????????????????????????????? 1 ?????
??????????? ?????? n ??????? 1 - 5 ????????
????????????????????? 100 ??? n ??????? 6 - 10
???????? ?????????????????? ??? 5 ???????? ???
?????????? 80 ??? n ??????? ??????? 11
???????????? ?? ?????????????????? ??? 10
???????? ????????????? 60 ?
42exercise
- 3.????????????????????????????????????? ???
?????????????? ?????? - A 80 100 B 79 - 75
- B 74 70 C 69 - 65
- C 64 60 D 59 - 55
- D 54 50 F 49 - 0
- ??????????????? ??????? 0-100 ????????????