Вы находитесь на странице: 1из 3

Introduction to flowcharting

As it was discussed earlier that the computer has no imagination or thinking of its own, every logic or task that has to be performed to the computer is detailed. For this purpose, we have to give some instructions to the computer that is called programming.

Programming process:The set of detailed instructions which group the data processing activities together that are to be performed by a computer is called programs. The computer programming process is the collection of these six phases. 1. Program Analysis: Before making programs, the analysis of the system is done. This includes the inputs that are to be taken, the processing and the outputs that are to be generated. In this phase, it is also checked that if the program worth making. 2. Program Design: In this phase the program layout is prepared by the system analyst and provided to the programmer. This is done using flowcharts that shows the flow of data, documents etc. very clearly. 3. Program Coding: In this phase, the implementation of flowchart is done using any programming language. For each language, there are separate set of instructions with their respective syntax. !rogram coding is done in a way that these three ob"ectives are achieved#$ simplicity, efficient utili%ation of storage and least processing time. . Program de!ugging: After completion of program coding, it is compiled and run. &uring this process, only few errors can be traced. After elimination of these errors, the program is put to use in real necessity. The logical errors 'bugs( that arise now are to be removed and this process is known as debugging. ". Program documentation: !rogram documentation is done to provide explanation to the end user. This includes#$ !rogram specification !rogram description The test data that is employed in debugging the program. The operation manual that lists operating instructions for the operator. The maintenance documentation that is re)uired to the person who has to make the necessary changes to the program. #. Program $aintenance: the changes are constantly re)uired in a business system and hence the program is also re)uired to be changed. For this, separate programmers are re)uired that are known as maintenance programmers. Because of this purpose the programs that ire written should be simple and self explanatory.

%ypes of &low charts:1. 'ystem outline chart# These charts mainly list the broad aspects of an application like structure, inputs, types of files to processed without regard to any se)uence of flow. In these charts we mainly outline the work to be done in an application. 2. 'ystem flow chart# These charts represent the logical flow of all aspects of the data processing system in graphical manner. *ike in complete application of sales department, to display the logical flow of sales order processing systems and its interlinking with other application, a systems flow chart is prepared. 3. (un flow chart# +ince the system flowchart is a collection of several processes, the run flow chart in fact represents the future detailing of any particular process of system flow chart. . Program flow chart# These flow charts are the most detailed flow charts and are concerned with actual logical,arithmetic operations on data within -!. / for flow of data to various devices within application. These flow charts are normally directly converted into programs with the help

of statements. These flow charts are normally prepared by programmer for graphical solution of any arithmetic and logical problems. 0ere, mainly we have concern with program flowchart for solving the problem. As we saw that flowcharting is the part of program design and programs design phase comes after program analysis, hence to dray any flowchart we should first of all do the analysis of the problem for which we want to draw the flowchart. i.e. the input re)uired and the processing that has to be applied to get the desired output.

&lowchart
Definition: Flow charts can be defined as pictorial representations of an algorithm by system analysts for planning the procedure to solve a program. The diagram includes the flow of process, relevant operations and computations, point of decision and other information which is a part of solution. Algorithm: It is a step$by$step problem solving procedure that can be carried out by a computer. Its main features include# 1. It should be simple 2. It should be clear 3. It should lead to a uni)ue solution to a problem. 4. It should have finite number of steps to arrive to a solution.

'ym!ols used in a flow charts:'tart*stop )o+ 5epresents the beginning or the end of a flow chart Input* ,utput )o+ 5epresents to accept the input from the user and display the output on the respective devices Processing )o+ 5epresents the processing on variables input by the user Decision )o+ .sed for checking the condition and proceeding, based on the value that is returned by the comparison of the condition either True or False. &low -ines 5epresents the flow of controls from one process to another

Connectors These are used to "oin two different processes together.

.eneral guidelines to prepare &lowcharts:1. 2. 3. . ". #. *isting all re)uirements in proper logical order and in detail. 6ust be maid clear, neat and easy to fallow in order to have a good visual impact. .se appropriate standard flowcharting symbols. 6ake comparison instructions simple. 7es,8o type. Avoid intersections of lines, used to depict the flow of logic. .se connectors to reduce the number of flow lines. -onnector9s are useful where the flow charts are several pages long. /. -heck that the flowchart is logically correct and complete. This process is technically known as debugging and is done by using suitable test data.

Ad0antages of using flowcharts:1. -ommunication# flowcharts are a good visual aid for communicating the logic of a system, to all concerned. 2. :uicker group of relationship# with the help of flowcharts, the relationship between the procedures can be identified and understood easily. 3. ;ffective analysis and synthesis# before programming a new system, the analysis is done effectively using flowcharts. In a running system program, flowchart may be used to combine old approaches with the new logics. . ;fficient coding# with the help of flow chart the program logic can be implemented in any programming language for building up a new system. ". <rderly debugging# the flowchart also helps in debugging process i.e. it helps in detecting, locating and removing mistakes.

-imitations of &lowcharts:1. Comple+ -ogic: =hen the program logic is complex, the flowcharts become lengthy and lack clarity in decision table. 2. Alteration and $odification: If alterations are re)uired, the flowchart may re)uire re$drawing completely. 3. (eproduction: As flowchart symbols cannot be typed, reproduction of flowchart is often a problem. . 'tandardi1ation: Though program flowcharts are easy to follow, they are neither expressed completely in ;nglish, nor ere they translated in programming languages.

Вам также может понравиться