Our second topic was all about FLOWCHARTING. I thought this topic will be a lot simpler than our lessons before. Yet, this is really a tough one. It needed analysis and good decision-making. We first defined flowcharting as the use of symbols and phrases to designate the logic of how a problem is solved and a common method for defining the logical steps of flow within a program by using a series of symbols to identify the basic input, process and output function within a program. We then tackled about the contents of the flowchart. One of which is the algorithm. Algorithm is a finite set of instructions that specify a sequence of operations to be carried out in order to solve a specific problem or class of problems. Symbols are used to represent the beginning, preparation, input and output, processing, decision-making, off-page and on-page connectors, flow lines and the symbol for the end. The basic control structures are the sequence, selection and repetition or looping.
Our teacher then elaborated the basic control structures. The simplest of the three is the sequence. It is the process executed from one to another in a straightforward manner. So the sequence is continuous and you will not anymore undergo decision-making. Secondly, the selection, a choice is provided between alternatives. This involves the symbol for decision which is diamond and branches two flow lines, for true and false. The toughest one is the repetition. This structure provides for the repetitive execution of an operation or routine while the condition is true. The condition is evaluated before executing any process statement. As long as the condition is true, the process is executed, otherwise, control flows out of the structure. The commonly used operators for the flowchart are the ARITHMETIC, RELATIONAL and LOGICAL operators.
Our teacher then elaborated the basic control structures. The simplest of the three is the sequence. It is the process executed from one to another in a straightforward manner. So the sequence is continuous and you will not anymore undergo decision-making. Secondly, the selection, a choice is provided between alternatives. This involves the symbol for decision which is diamond and branches two flow lines, for true and false. The toughest one is the repetition. This structure provides for the repetitive execution of an operation or routine while the condition is true. The condition is evaluated before executing any process statement. As long as the condition is true, the process is executed, otherwise, control flows out of the structure. The commonly used operators for the flowchart are the ARITHMETIC, RELATIONAL and LOGICAL operators.
No comments:
Post a Comment