Algorithms-Flowcharts-Data-Types-and-Pseudocodes
Algorithms-Flowcharts-Data-Types-and-Pseudocodes
Flowcharts, Data
Types and
Pseudocodes
Objectives
• Understanding algorithm
• Use pseudocode and flowchart in problem solving
• Understand the different data types
• Identify variables and know its corresponding data type
Algorithm
• An algorithm is a Step-by-step procedure to solve problems.
• A guide for new software a manual for assembling appliances,
and even recipes are examples of an algorithm.
• In programming, making an algorithm is exciting they are
expressed in a programming or pseudocode
• Algorithm makes the whole procedure more efficicent as well
as consistent
• It also helps in identifying decision point, processes and
essential variables to solve a problem.
PSEUDOCODE
• A pseudocode is a description of an algorithm or a computer
program using natural language.
• The aim of pseudocode is to make reading program easier,
some codes are not essential for human understanding are
omitted
• This language is commonly used in planning out the structure
of a program or a system, like the blueprint for creating a
house or a building.
Algorithm for Classifying
Student’s Grade
If student’s grade is Greater than or equal to 60
Print “Passed”
else
Print “Failed”
Read
Temperature
Temperature N Print”Above
<=0 Freezing”
Y
Print “Below A
Freezing”
A
End
Relationship of
Flowchart and
Pseudocodes in
planning
Identifying System
Specification and requirments
• In this substage of planning the needed description of the
system or application is acquired
• Purpose, System and user interfaces, database requirements,
quality standards, operations, overview of the whole
application, and other requirements needed for the project
development is defined
• This substage helps the programmers as well the clients in
foreseeing the scope and limitation of the application to be
made
Creating the applicable
diagram on the acquired
requirement
• This substage is all about creating flowchart and pseudocodes
based on the requirements acquired from the previous
substage, specifically from the identifying the system and user
interface as well as the database requirments