0% found this document useful (0 votes)
17 views14 pages

CHAPTER 5 of Other Stuff.

The document discusses programming concepts like flowcharting and pseudocode. It defines a program as a set of step-by-step instructions for a computer. A programmer designs programs using tools like flowcharts and algorithms. Flowcharts provide a graphical representation of a process using standard symbols. They can help identify problems and improve understanding. The document then describes various flowchart symbols and provides a sample flowchart for a program that calculates the sum of two numbers.

Uploaded by

korvensantiago25
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views14 pages

CHAPTER 5 of Other Stuff.

The document discusses programming concepts like flowcharting and pseudocode. It defines a program as a set of step-by-step instructions for a computer. A programmer designs programs using tools like flowcharts and algorithms. Flowcharts provide a graphical representation of a process using standard symbols. They can help identify problems and improve understanding. The document then describes various flowchart symbols and provides a sample flowchart for a program that calculates the sum of two numbers.

Uploaded by

korvensantiago25
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

PROG 2

CHAPTER 5: FLOWCHARTING
PROGRAM

• What is a program?
• A program is a set of step-by-step instructions that tells or directs the computer what to do.

• Program Development Life Cycle


• 1. Identify the problem
• 2. Plan the solution
• 3. Code the program
• 4. Test the program
• 5. Documentation
PROGRAMMER AND YOU

• A programmer is the person who designs a program.


• The programmer is the one who writes the sequence of instructions called algorithm.
Algorithm is also called programming logic document and the most common tool or
method used in program design in the flowchart.
• Programming is easy but not everyone can be a programmer. Logical approach, time
management and fast internet connection for research are essential for a budding
programmer.
FLOWCHARTING

• A flowchart is a graphical representation and one of the processes used in designing or


planning the solution to a problem.
• It can also be used to analyze document, design and manage a process flow or sequence.
• A flow chart provides the user visual help in understanding a process and sees possible
solution flaws, problems and bottlenecks within it.
• A flowchart is represented by different symbols and is linked by arrows displaying the
process or flow.
• It contains description of the step or process.
PSEUDOCODE

• A Pseudocode is a short description of a particular process or step and is used to allow


readers to easily understand a certain process.
• Pseudocodes allow the first time reader of a certain process to grasp what the original
author intends to do at that particular instant.
• They also help the original author to remember his intention for that step especially if
the program was made a long time ago.
SYMBOLS USED IN FLOWCHARTING

• Terminal/Terminator
• Represents the start and end of the program

start end
SYMBOLS USED IN FLOWCHARTING

• Preparation/Initialization
• Represents memory for repetition of action

Int a;
Int b;
Int c;
SYMBOLS USED IN FLOWCHARTING

• Input/Output
• Represents the steps where information are entered by the user.

Input text Output text


SYMBOLS USED IN FLOWCHARTING

• Process
• Represents an instruction or steps

A=x+y
SYMBOLS USED IN FLOWCHARTING

• Decision
• Represents logical test which is answerable by yes or no / true or false

If
Gender
==
“male”
SYMBOLS USED IN FLOWCHARTING

• Flowlines
• Represents the flow or direction of the program
SYMBOLS USED IN FLOWCHARTING

• Connector
• Connects the flowchart to another part or page

On page Off page


SAMPLE FLOWCHART

• Create a program that will generate the sum of two numbers.


• For this flowchart, we need to plan ahead:
• How many variables to use
• Input and output values
• Logical and decision making capabilities of the program.
Start
a

Int a; c=a+b
Int b;
Int c;

Input first The sum of a and


number: (a) b is c

Input second
number: (b) Stop

You might also like