0% found this document useful (0 votes)
4 views26 pages

Flowchart & Pseudocode

The document explains the differences between algorithms, pseudocode, flowcharts, and programs, highlighting their roles in problem-solving in computer science. It provides definitions, examples, and visual representations of each concept, emphasizing the importance of structured approaches to programming. Additionally, it includes questions to test understanding of these concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views26 pages

Flowchart & Pseudocode

The document explains the differences between algorithms, pseudocode, flowcharts, and programs, highlighting their roles in problem-solving in computer science. It provides definitions, examples, and visual representations of each concept, emphasizing the importance of structured approaches to programming. Additionally, it includes questions to test understanding of these concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 26

ALL OF US SOME

"

TIMES COME
ACROSS PROBLEMS
WE HAVE TO SOLVE,
AND SOMETIMES
FRIENDS CAN HELP
US, TOO!"
A computer is a blank
canvas
Waiting for you to
instruct.
Plan out with
Written by P.Jones 2014

pseudocode
Then program to
construct.
Created by P.Jones 2014
DIFFERENCE BETWEEN ALGORITHM,
PSEUDOCODE,FLOWCHART AND PROGRAM

 Algorithm :
Systematic logical approach which is a well-
defined, step-by-step procedure that allows a
computer to solve a problem.
Algorithms can be expressed using natural
language, flowcharts, etc.
Informal definition of an algorithm
used in a computer
EXAMPLE : CONVERT TEMPERATURE FROM
FAHRENHEIT (℉) TO CELSIUS (℃)

 Algorithm:
Step 1: Read temperature in Fahrenheit,

Step 2: Calculate temperature with formula


C=5/9*(F-32),

Step 3: Print C,
FLOWCHART
A flowchart is the graphical or pictorial
representation of an algorithm with the help
of different symbols, shapes and arrows in
order to demonstrate a process or a program.
 The main purpose of a flowchart is to

analyze different processes, business,


educational, personal and of course
algorithms.
 Several standard graphics ae applied in a

flowchart
EXAMPLE : CONVERT TEMPERATURE
FROM FAHRENHEIT (℉) TO CELSIUS (℃)
PSEUDOCODE :
 It is a simpler version of a
programming code in plain English
which uses short phrases to write code
for a program before it is implemented
in a specific programming language.
 It does not have a specific

syntax like any of the programming


languages and thus cannot be
executed on a computer
EXAMPLE:
 GIVEN input Fahrenheit temperature F,

 COMPUTE C = (F - 32) * 5 / 9

 RETURN C
Pseudocode for three
constructs
PROGRAM :
 It is exact code written for problem following all
the rules of the programming language.
 #include <bits/stdc++.h>
 using namespace std;
 float Conversion(float n)
 {
 return (n - 32.0) * 5.0 / 9.0;
 }
 // driver code
 int main()
 {
 float n = 40;
 cout << Conversion(n);
 return 0;
 }
FLOW CHART SYMBOLS
EXAMPLE : STUDENT ADMISSION
PROCESS
Questions
• In computer science, algorithm refers to a
pictorial representation of a flowchart.
a) True
b) False

• Actual instructions in flowcharting are


represented in __________
a) Circles
b) Boxes
c) Arrows
d) Lines
© Brooks/Cole,
2003
 The following box denotes?

a) Decision
b) Initiation
c) Initialization
d) I/O

 There should be certain set standards on the


amount of details that should be provided in a
flowchart.
a) True
b) False
 Which of the following is not an advantage of
a flowchart?
a) Better communication
b) Efficient coding
c) Systematic testing
d) Improper documentation

 Which of the following is incorrect?


Algorithms can be represented:
a) as pseudo codes
b) as syntax
c) as programs
d) as flowcharts
 When an algorithm is written in the form of a
programming language, it becomes a _________
a) Flowchart
b) Program
c) Pseudo code
d) Syntax

 ___________ is basically an algorithm


implemented using comments and
explanatory text written in simple English.
a. Pseudocode
b. Flowchart
c. Algorithm
d. None of the above
 You can create a flowchart using ____________?
a. Pen & Pencil
b. Using Online software
c. Using Offline software
d. All of the above

 _________ symbol used when the flow chart is


starting or ending.
a. Connector/ Arrow
b. Terminal Box
c. Input / Output
d. Process
Than
k You

You might also like