Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
93 views

Algorithm, Flowchart and Sequence

This document discusses algorithms, flowcharts, and their basic components and structures. An algorithm is a step-by-step procedure for solving a problem, while a flowchart is a graphical representation of an algorithm that visually presents the flow of data through an information processing system. There are different types of flowcharts like system and program flowcharts. The document also outlines basic flowchart symbols and structures like sequence, selection, and repetition that control program flow. It provides examples of how to create algorithms and flowcharts to solve simple math problems.

Uploaded by

Kriz
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views

Algorithm, Flowchart and Sequence

This document discusses algorithms, flowcharts, and their basic components and structures. An algorithm is a step-by-step procedure for solving a problem, while a flowchart is a graphical representation of an algorithm that visually presents the flow of data through an information processing system. There are different types of flowcharts like system and program flowcharts. The document also outlines basic flowchart symbols and structures like sequence, selection, and repetition that control program flow. It provides examples of how to create algorithms and flowcharts to solve simple math problems.

Uploaded by

Kriz
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

ALGORITHM & FLOWCHART

Prepared by Esther R. Cuaresma

ALGORITHM
It

is a procedure or a formula for solving a problem. It is a step-by-step procedure to solve a problem.

FLOWCHART
It

is a design aid used by problem analysts in the solution of computer related problems. It is a means of visually presenting the flow of data through an information processing system, the operations and the sequence in which they are performed. It is a graphical representation of an algorithm.

TYPES OF FLOWCHARTS

System Flowchart

Visually describes the operations performed in the data through all parts of a data processing system. The emphasis is on people, activities, documents and media. It describes data sources, their form and the stages through which they will be processed.
It is a pictorial representation of a procedure. It is used to indicate the flow and sequence of detailed steps in a procedure.

Program Flowchart

BASIC FLOWCHARTING SYMBOLS

TERMINAL

PREPARATION / INITIALIZATION

INPUT / OUTPUT

PROCESS

PRE-DEFINED PROCESS

DECISION BOX

DOCUMENTATION

CONNECTOR

ON-PAGE CONNECTOR

OFF-PAGE CONNECTOR

FLOWLINES

BASIC DATA CONTROL OF PROGRAM FLOWCHART STRUCTURES


1.

Sequence

Indicates that controls flows from one process box to another (straight forward).
This structure provides for a choice of one between two alternatives. If there are conditions in your problem.

2.

Selection (if-then-else)

3.

Repetition (Looping)

SEQUENCE STRUCTURE

SEQUENCE STRUCTURE
1.

2.

Write an algorithm and design a flowchart that will input the length and width of a rectangle. Find the Area and the Perimeter. Print the length, width, area and perimeter. Write an algorithm and design a flowchart that will input 3 quizzes of a student into a computer and find the average. Print the 3 quizzes and the average.

SEQUENCE STRUCTURE

Write an algorithm and design a flowchart that will input the Class standing and Midterm exam grades. Compute for the midterm grade of a student. The midterm grade is equal to 60% of the Class Standing and 40% of the Midterm Exam. Print the Class Standing, Midterm Exam and Midterm Grade.

You might also like