reduce syntax errors and save time for coding a program in the next phase. There is a great deal of research about the automatic generation of code from flowcharts available today. For example, using a flowchart for teaching computer programming . Users draw a flowchart by using the drawing tool. Then, the translation module will translate the flowchart into C source codes. Moreover, the system can proceed with the compilation and linking of C source code. Problem Analysis Diagram (PAD) for the generation of source code . The system automatically converts a structured flowchart to PAD that enhances the readability of the algorithm, reduces the difficulty of the system design and improves the reliability and robustness of the software. However, the tools created by these researches studies have all run on windows-based applications, while the tool in this research could be developed in a web-based application. Users can use and access the tool via a web browser. Moreover, the users also have the option of converting the flowchart into Java source code or PHP source code. Next, we reviewed the structure of the algorithms to be used in determining the scope of the system. There are three basic structures: sequence, selection and iteration. Sequence structure performs actions or tasks in order. Selection structure or decision structure performs check of condition, taking one or two actions. Iteration structure or loop structure repeats actions while a condition remains true. Fig. 2 shows three basic structures of a flowchart. Fig. 2. Three basic structures of a flowchart . These basic structures can be coordinates, they can include each other: stacking, nested selection, nested loop, nesting (selection-loop) and nesting (loop-selection). Fig. 3 shows the stacking structure that combines three basic structures end to end. Fig. 3. Stacking structure of a flowchart. The nested selection structure has a condition within a condition. There is more than one decision to be made before appropriate action can be taken. The nested loop is a loop within a loop, an inner loop within the body of an outer one. It is characterized by two or more iteration statements that are placed in a nested form. Fig. 4 shows a nested selection structure and nested loop structures of the flowchart. Fig. 4. Nested selection structure and nested loop structure of a flowchart. 448#
The nesting structure performs the placing of one structure within another. The nesting (selection-loop) structure placing a loop structure is within a selection structure. The nesting (loop-selection) structure placing a selection structure is within a loop structure. Fig. 5 shows the nesting (selection- loop) structure and the nesting (loop-selection) structure of a flowchart. Fig. 5. Nesting (selection-loop) structure and nesting (loop-selection) structure of flowchart.
You've reached the end of your free preview.
Want to read all 4 pages?
- Spring '17
- Computer program