2Outline Element of computer Computer language & Interpreter Analysis & AlgorithmAlgorithm structure
3Element of computerComputerHardwareSoftwarePeopleware
4Computer language & Language Translator Machine LanguageLow Level LanguageHigh Level LanguageLanguage TranslatorAssemblerCompilerInterpreter
5Analysis & Algorithm Analysis Answer Analysis Data Analysis Process AnalysisDebug AnalysisAlgorithmFlowchartPseudo 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 systemData flowcharts, showing data flows in a systemSystem flowcharts, showing controls at a physical or resource levelProgram flowchart, showing the controls in a program within a system
8SymbolStart 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.
9SymbolProcessing 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;
10SymbolConditional 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 SymbolsSymbols of flowchart to standard from ANSI (The American National Standard Institute)SymbolsDescriptionProcessingกระบวนการ การคำนวณAuxiliaryกระบวนการสำรอง
19Usually Symbols Read Reading of Keyboard Read Read Reading of other toolsReading data of Symbols by Keyboard & Other tools
20Usually Symbols Display Display on Monitor แสดงผล... Display Display on PrinterDisplayแสดงผล...DisplayDisplay on other toolsDisplay data of Symbols by Keyboard & Other tools
21Natural LanguageFind x from equation x = (a+b-c)/100 ; if a, b, c manual input from keyboard and display x on monitor.StartProgram Sample;Uses crt;Var a, b, c, x : realBeginClrscr;Readln(a,b,c);x := (a+b-c)/100Writeln(x:8:2);End.Input a, b, cx <- (a+b-c)/100xEnd
22Algorithm structure Sequential Selection Repetition Step to Step Select part to true and falseRepetitionLoop
23SequentialSummations of 2 number define a, b by a, b manual input from keyboard and display answer on monitor.
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