Comp121 Pre-Final Programming

You might also like

You are on page 1of 7

COMP 121

COMPUTER FUNDAMENTALS

ENGR. ROMEO D. LAUD, JR.


FLOW CHARTS
A flowchart is a type of diagram that represents an algorithm,
workflow or process. The flowchart shows the steps as boxes of
various kinds, and their order by connecting the boxes with arrows.
This diagrammatic representation illustrates a solution model to a
given problem. Flowcharts are used in analyzing, designing,
documenting or managing a process or program in various fields
FLOW CHARTS
Terminal
The rounded rectangles, or terminal points, indicate the flowchart’s starting and
ending points.

Flow Lines
Note: The default flow is left to right and top to bottom (the same way you read
English).
FLOW CHARTS
Input/Output
The parallelograms designate input or output operations.

Process
The rectangle depicts a process such as a mathematical computation, or a
variable assignment.
FLOW CHARTS
Decision
The diamond is used to represent the true/false statement being tested in a
decision symbol.

Preparation / Initialization
The hexagon is used to initialize variables.
FLOW CHARTS
A flowchart is a graphical representation of an algorithm.it should follow some
rules while creating a flowchart.

Rule 1: Flowchart opening statement must be ‘start’ keyword.


Rule 2: Flowchart ending statement must be ‘end’ keyword.
Rule 3: All symbols in the flowchart must be connected with an arrow line.
Rule 4: The decision symbol in the flowchart is associated with the arrow line.
FLOW CHARTS
1. Print your name.

2. Enter name and print.

3. Enter number and print

4. Enter two number and print the highest.

5. Enter two number and find the sum, difference, product and quotient.

You might also like