Introductie in flowcharts
Flow Charts Een flow chart kan gebruikt worden om: Processen definieren en analyseren. Een beeld vormen van een proces voor analyse, discussie of communicatie. Het definieren, standaardiseren of voor het vinden van een verbetering voor een proces.
symbolen voor Flow Charts Start or End of the program
Input or output operation
symbolen voor Flow Charts Computational Steps or Processing Function of a program
symbolen voor Flow Charts Het maken van een beslissing
symbolen voor Flow Charts Connector or joining of two parts of program. Wordt gebruikt om een flow chart te verbinden met een afgezonerd deel op dezelfde of een andere pagina. 1 flow ljin gaat naar binnen en 1 naar buiten.
symbolen voor Flow Charts Dit teken stelt Magnetic Tape voor. Maar wordt niet vaak meer gebruikt.
Opslag plaats, Database
symbolen voor Flow Charts Flow lines
symbolen voor Flow Charts Annotation (foot note) of commentaar
Guidelines in flowcharting - In drawing a proper flowchart, all necessary requirements should be listed out in logical order. The flowchart should be clear, neat and easy to follow. There should not be any room for ambiguity in understanding the flowchart. The usual direction of the flow of a procedure or system is from left to right or top to bottom.
Guidelines in flowcharting - Only one flow line should come out from a process symbol. OR
Guidelines in flowcharting - Only one flow line should enter a decision symbol, but two or three flow lines, one for each possible answer, should leave the decision symbol.
Guidelines in flowcharting Only one flow line is used in conjunction with terminal symbol. Start Stop/End
Guidelines in flowcharting Write within standard symbols briefly. As necessary, you can use the annotation symbol to describe data or computational steps more clearly. This is confidential data
Guidelines in flowcharting In case of complex flowchart, it is better to use connector symbols to reduce the number of flow lines. Avoid the intersection of flow lines. Ensure that the flowchart has a logical start and finish. It is useful to test the validity of the flowchart by passing through it with a simple test data.
Advantages Of Using Flowcharts : Communication: Flowcharts are better way of communicating the logic of a system to all concerned. Effective analysis: With the help of flowchart, problem can be analyzed in more effective way. Proper documentation: Program flowcharts serve as a good program documentation, which is needed for various purposes. Efficient Coding: The flowcharts act as a guide or blueprint during the systems analysis and program development phase. Proper Debugging: The flowchart helps in debugging process. Efficient Program Maintenance: The maintenance of operating program becomes easy with the help of flowchart. It helps the programmer to put efforts more efficiently on that part
Limitations of using Flowcharts : 1. Complex logic: Sometimes, the program logic is quite complicated. 2. Alterations and Modifications: Alterations may require re-drawing completely. 3. Reproduction: As the flowchart symbols cannot be typed, reproduction of flowchart becomes a problem.
Flowchart: Vertegenwoordigd een algoritme in grafische symbolen/
symbolen voor Flow Charts Terminal: Wordt gebruikt om de start of het einde van een flowchart aan te geven. Voor elk programma telt slechts 1 start en stop terminal. Process: Wordt gebruikt wanneer data bewerkt of gemanipuleerd wordt. 1 flow ljin gaat naar binnen en 1 naar buiten. Input/Output: Wordt gebruikt wanneer data of gegevens ingevoerd worden(input) en afgedrukt(output) worden. 1 flow ljin gaat naar binnen en 1 naar buiten.
Flowchart Symbols Beslissing: wordt gebruikt om de operaties te weergeven, waar twee keuzen mogelijk zijn. Een flow lijn gaat naar binnnen(met label ja en nee) en 2 flow lijnen gaan naar buiten. Function / Subroutine: Used to identify an operation in a separate flowchart segment (module). One flow line enters and one flow line exits. On-page Connector: Wordt gebruikt om een flow chart te verbinden met een afgezonerd deel op dezelfde of een andere pagina. 1 flow ljin gaat naar binnen en 1 naar buiten. Off-page Connector: Used to connect remote flowchart portion on different pages. One flow line enters and one flow line exits. Comment: Used to add descriptions or clarification. Flow line: Geeft een indicatie van de richting van de flow van control
Comments or description Start Read N, M N = The number of students M = The number of subjects Yes No Stop
Connectors on the same page Start 1 2 1- connection on the same flowchart portion Stop 2- connection on the different flowchart portion 1 2
Connectors on a different pages Page 1 Page 2 Start 2 1 Yes 1 No Stop 2
Opdracht: 3 nummers op tellen Een programma is vereist om 3 nummers te lezen. Deze nummers bij elkaar op te tellen en het totaal, de som van de deze nummers te printen.