SlideShare a Scribd company logo
 Flowcharts
 What is the need of flowchart?
 Various symbols used in flowchart
After completing this chapter you should be able
to.…
 Explain what a program flowchart is and what the reasons for
and disadvantages are of using program flowcharts to plan
logic.
 Recognize and know when to use appropriate program
flowchart symbols.
 What is a Program Flowchart
 Why do Programmers Use Them to Develop Program Logic?
 A tool used by programmers to develop
program logic
 Logic diagram
 Focuses on the sequence of data
transformations from the time data are input
until they are output as information
 A flowchart is a visual representation of the
sequence of steps and decisions needed to
perform a process. Each step in the sequence
is noted within a diagram shape. Steps are
linked by connecting lines and directional
arrows.
Designates the beginning or end of a program or
routine
HEADINGS
START STOP
RETURN
Denotes an operation involving an input or output
device
OPEN
FILES
READ A
RECORD
WRITE
A LINE
CLOSE
FILES
Used for move instructions and arithmetic
instructions
AVERAGE =
(SCORE1 +
SCORE2) / 2
MOVE
SCORE1 TO
ACCUMULATOR
Designates that different logic paths will be followed
based on a condition occurring in a program
IS A = B?
Yes
No
CODE = ?
1 2 3 4 5
Assigns initial values to areas in storage and does
whatever else is necessary to get ready for processing
COUNTER
=
0
Links other symbols and indicates the
sequence of operations
•Normal flow is top to bottom and left
to right
•Arrowheads must be used when the
flow is other than the normal flow
 Avoid intersecting flowlines
START
STOP
B
C
B
A
C
A
START
STOP
 Avoid multiple flowlines entering a symbol
 Opening a file
◦ Before a file can be accessed, it must be
opened
◦ Ensures that the file can be accessed
◦ Depending on the programming language,
not all files need to be opened by the
programmer--some are opened
automatically by the language
 Closing a file
◦ Close instruction tells the computer your
are through accessing the file
◦ Some languages will automatically close
files
◦ Writes the end-of-file record on output
files
Start
Open
Files
Read a
Record
Write a
line
Close
Files
Stop
 Copies the content of the record
contained in secondary storage into the
primary storage of the computer
 The record is not physically moved from
secondary to primary storage
 Suppose the input record contains the
name MARY SMITH. How does the
computer know where in primary storage
to put the record?
Start
Open
Files
Read a
Record
Write a
line
Close
Files
Stop
 We learnt why flowcharts are needed before
developing a program.
 When flowcharts are made?
 How to open and close a flowchart.
 Various symbols while making a flowchart.
Q1) Symbol used in flowchart such as rectangle with horizontal
lines on two sides is used for
a) defined statement
b) predefined process
c) error fix
d) variables defined
Q2) Diamond shaped symbol is used in flowcharts to show the
a) decision box
b) statement box
c) error box
d) if-statement box
Q3) Link with another part of program or connectors in flowchart
are shown in
a) Rhombus
b) Parallelogram
c) Circle
d) Trapezoid
Q4) What symbol is used to represent output in a flowchart?
a. Square
b. Circle
c. parallelogram
d. triangle
Q5) Which statement is used to indicate the
end of a module?
a. stop
b. end
c. return
d. done
 Programming using C language ‘ABS
PUBLICATIONS’

More Related Content

What's hot

Ch1
Ch1Ch1
phases of a compiler
 phases of a compiler phases of a compiler
phases of a compiler
Ms.SHANTHI.S CSE
 
Compiler Design Quiz
Compiler Design QuizCompiler Design Quiz
Compiler Design Quiz
Satyam Jaiswal
 
Ch 4 linker loader
Ch 4 linker loaderCh 4 linker loader
Ch 4 linker loader
Malek Sumaiya
 
what is compiler and five phases of compiler
what is compiler and five phases of compilerwhat is compiler and five phases of compiler
what is compiler and five phases of compiler
adilmehmood93
 
Error detection recovery
Error detection recoveryError detection recovery
Error detection recovery
Tech_MX
 
Compiler1
Compiler1Compiler1
Compiler1
Natish Kumar
 
phases of compiler-analysis phase
phases of compiler-analysis phasephases of compiler-analysis phase
phases of compiler-analysis phase
Suyash Srivastava
 
Compiler Design(Nanthu)
Compiler Design(Nanthu)Compiler Design(Nanthu)
Compiler Design(Nanthu)
guest91cc85
 
Introduction to Compiler Construction
Introduction to Compiler Construction Introduction to Compiler Construction
Introduction to Compiler Construction
Sarmad Ali
 
Phases of a Compiler
Phases of a CompilerPhases of a Compiler
Phases of a Compiler
University of Saskatchewan
 
Fundamentals of Language Processing
Fundamentals of Language ProcessingFundamentals of Language Processing
Fundamentals of Language Processing
Hemant Sharma
 
Compiler Design Material
Compiler Design MaterialCompiler Design Material
Compiler Design Material
Dr. C.V. Suresh Babu
 
Language processors
Language processorsLanguage processors
Language processorseShikshak
 
COMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSCOMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONS
sonalikharade3
 
Compiler Construction Course - Introduction
Compiler Construction Course - IntroductionCompiler Construction Course - Introduction
Compiler Construction Course - Introduction
Muhammad Sanaullah
 
Phases of Compiler
Phases of CompilerPhases of Compiler
Phases of Compiler
A. S. M. Shafi
 
Spr ch-05-compilers
Spr ch-05-compilersSpr ch-05-compilers
Spr ch-05-compilers
Vasim Pathan
 
Compiler
Compiler Compiler
Language processors
Language processorsLanguage processors
Language processors
Yash Bansal
 

What's hot (20)

Ch1
Ch1Ch1
Ch1
 
phases of a compiler
 phases of a compiler phases of a compiler
phases of a compiler
 
Compiler Design Quiz
Compiler Design QuizCompiler Design Quiz
Compiler Design Quiz
 
Ch 4 linker loader
Ch 4 linker loaderCh 4 linker loader
Ch 4 linker loader
 
what is compiler and five phases of compiler
what is compiler and five phases of compilerwhat is compiler and five phases of compiler
what is compiler and five phases of compiler
 
Error detection recovery
Error detection recoveryError detection recovery
Error detection recovery
 
Compiler1
Compiler1Compiler1
Compiler1
 
phases of compiler-analysis phase
phases of compiler-analysis phasephases of compiler-analysis phase
phases of compiler-analysis phase
 
Compiler Design(Nanthu)
Compiler Design(Nanthu)Compiler Design(Nanthu)
Compiler Design(Nanthu)
 
Introduction to Compiler Construction
Introduction to Compiler Construction Introduction to Compiler Construction
Introduction to Compiler Construction
 
Phases of a Compiler
Phases of a CompilerPhases of a Compiler
Phases of a Compiler
 
Fundamentals of Language Processing
Fundamentals of Language ProcessingFundamentals of Language Processing
Fundamentals of Language Processing
 
Compiler Design Material
Compiler Design MaterialCompiler Design Material
Compiler Design Material
 
Language processors
Language processorsLanguage processors
Language processors
 
COMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSCOMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONS
 
Compiler Construction Course - Introduction
Compiler Construction Course - IntroductionCompiler Construction Course - Introduction
Compiler Construction Course - Introduction
 
Phases of Compiler
Phases of CompilerPhases of Compiler
Phases of Compiler
 
Spr ch-05-compilers
Spr ch-05-compilersSpr ch-05-compilers
Spr ch-05-compilers
 
Compiler
Compiler Compiler
Compiler
 
Language processors
Language processorsLanguage processors
Language processors
 

Similar to Lesson 4

Programming process and flowchart
Programming process and flowchartProgramming process and flowchart
Programming process and flowchart
hermiraguilar
 
UNIT 2 ECSE-2.pptx
UNIT 2 ECSE-2.pptxUNIT 2 ECSE-2.pptx
UNIT 2 ECSE-2.pptx
AdharshKokkula
 
PCCF UNIT 1.pptx
PCCF UNIT 1.pptxPCCF UNIT 1.pptx
PCCF UNIT 1.pptx
DivyaKS12
 
Chap 1-language processor
Chap 1-language processorChap 1-language processor
Chap 1-language processor
shindept123
 
Algorithms and flow charts
Algorithms and flow chartsAlgorithms and flow charts
Algorithms and flow charts
Chinnu Edwin
 
Program logic and design
Program logic and designProgram logic and design
Program logic and design
Chaffey College
 
Software development slides
Software development slidesSoftware development slides
Software development slides
iarthur
 
Software
SoftwareSoftware
Software
Sangeetha S
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)
nharsh2308
 
FPL -Part 2 ( Sem - I 2013)
FPL -Part 2 ( Sem - I 2013)FPL -Part 2 ( Sem - I 2013)
FPL -Part 2 ( Sem - I 2013)
Yogesh Deshpande
 
Log4e
Log4eLog4e
What is algorithm
What is algorithmWhat is algorithm
What is algorithm
mshoaib15
 
Translating Flowchart algorithm to Pseudocode Format and vice versa.pptx
Translating Flowchart algorithm to Pseudocode Format and vice versa.pptxTranslating Flowchart algorithm to Pseudocode Format and vice versa.pptx
Translating Flowchart algorithm to Pseudocode Format and vice versa.pptx
RichMonddhmm
 
Compiler an overview
Compiler  an overviewCompiler  an overview
Compiler an overview
amudha arul
 
Chapter 1 - Basic concepts of programming.pdf
Chapter 1 - Basic concepts of programming.pdfChapter 1 - Basic concepts of programming.pdf
Chapter 1 - Basic concepts of programming.pdf
KirubelWondwoson1
 
Introductoin to Python.ppt
Introductoin to Python.pptIntroductoin to Python.ppt
Introductoin to Python.ppt
TyronHawkinsOBato
 
Introduction to Programming.docx
Introduction to Programming.docxIntroduction to Programming.docx
Introduction to Programming.docx
JohnBrianCatedrilla1
 
Chap 1-dhamdhere system programming
Chap 1-dhamdhere system programmingChap 1-dhamdhere system programming
Chap 1-dhamdhere system programming
TanzoGamerz
 
Linker and Loader
Linker and Loader Linker and Loader
Linker and Loader
sonalikharade3
 
linker & loader presentation in Compiler Design
linker & loader presentation in Compiler Designlinker & loader presentation in Compiler Design
linker & loader presentation in Compiler Design
AbhishekKumar117405
 

Similar to Lesson 4 (20)

Programming process and flowchart
Programming process and flowchartProgramming process and flowchart
Programming process and flowchart
 
UNIT 2 ECSE-2.pptx
UNIT 2 ECSE-2.pptxUNIT 2 ECSE-2.pptx
UNIT 2 ECSE-2.pptx
 
PCCF UNIT 1.pptx
PCCF UNIT 1.pptxPCCF UNIT 1.pptx
PCCF UNIT 1.pptx
 
Chap 1-language processor
Chap 1-language processorChap 1-language processor
Chap 1-language processor
 
Algorithms and flow charts
Algorithms and flow chartsAlgorithms and flow charts
Algorithms and flow charts
 
Program logic and design
Program logic and designProgram logic and design
Program logic and design
 
Software development slides
Software development slidesSoftware development slides
Software development slides
 
Software
SoftwareSoftware
Software
 
Introduction to programming language (basic)
Introduction to programming language (basic)Introduction to programming language (basic)
Introduction to programming language (basic)
 
FPL -Part 2 ( Sem - I 2013)
FPL -Part 2 ( Sem - I 2013)FPL -Part 2 ( Sem - I 2013)
FPL -Part 2 ( Sem - I 2013)
 
Log4e
Log4eLog4e
Log4e
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithm
 
Translating Flowchart algorithm to Pseudocode Format and vice versa.pptx
Translating Flowchart algorithm to Pseudocode Format and vice versa.pptxTranslating Flowchart algorithm to Pseudocode Format and vice versa.pptx
Translating Flowchart algorithm to Pseudocode Format and vice versa.pptx
 
Compiler an overview
Compiler  an overviewCompiler  an overview
Compiler an overview
 
Chapter 1 - Basic concepts of programming.pdf
Chapter 1 - Basic concepts of programming.pdfChapter 1 - Basic concepts of programming.pdf
Chapter 1 - Basic concepts of programming.pdf
 
Introductoin to Python.ppt
Introductoin to Python.pptIntroductoin to Python.ppt
Introductoin to Python.ppt
 
Introduction to Programming.docx
Introduction to Programming.docxIntroduction to Programming.docx
Introduction to Programming.docx
 
Chap 1-dhamdhere system programming
Chap 1-dhamdhere system programmingChap 1-dhamdhere system programming
Chap 1-dhamdhere system programming
 
Linker and Loader
Linker and Loader Linker and Loader
Linker and Loader
 
linker & loader presentation in Compiler Design
linker & loader presentation in Compiler Designlinker & loader presentation in Compiler Design
linker & loader presentation in Compiler Design
 

More from Dr. Rupinder Singh

1.1 communication
1.1 communication1.1 communication
1.1 communication
Dr. Rupinder Singh
 
Lesson 7 io statements
Lesson 7 io statementsLesson 7 io statements
Lesson 7 io statements
Dr. Rupinder Singh
 
Lesson 3
Lesson 3Lesson 3
Lesson 2
Lesson 2Lesson 2
Lesson 1
Lesson 1Lesson 1
Data types
Data typesData types
Data types
Dr. Rupinder Singh
 
Compilation
CompilationCompilation
Compilation
Dr. Rupinder Singh
 
C Slides
C SlidesC Slides

More from Dr. Rupinder Singh (8)

1.1 communication
1.1 communication1.1 communication
1.1 communication
 
Lesson 7 io statements
Lesson 7 io statementsLesson 7 io statements
Lesson 7 io statements
 
Lesson 3
Lesson 3Lesson 3
Lesson 3
 
Lesson 2
Lesson 2Lesson 2
Lesson 2
 
Lesson 1
Lesson 1Lesson 1
Lesson 1
 
Data types
Data typesData types
Data types
 
Compilation
CompilationCompilation
Compilation
 
C Slides
C SlidesC Slides
C Slides
 

Recently uploaded

ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
sayalidalavi006
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 

Recently uploaded (20)

ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 

Lesson 4

  • 1.
  • 2.  Flowcharts  What is the need of flowchart?  Various symbols used in flowchart
  • 3. After completing this chapter you should be able to.…  Explain what a program flowchart is and what the reasons for and disadvantages are of using program flowcharts to plan logic.  Recognize and know when to use appropriate program flowchart symbols.
  • 4.  What is a Program Flowchart  Why do Programmers Use Them to Develop Program Logic?
  • 5.  A tool used by programmers to develop program logic  Logic diagram  Focuses on the sequence of data transformations from the time data are input until they are output as information
  • 6.  A flowchart is a visual representation of the sequence of steps and decisions needed to perform a process. Each step in the sequence is noted within a diagram shape. Steps are linked by connecting lines and directional arrows.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11. Designates the beginning or end of a program or routine HEADINGS START STOP RETURN
  • 12. Denotes an operation involving an input or output device OPEN FILES READ A RECORD WRITE A LINE CLOSE FILES
  • 13. Used for move instructions and arithmetic instructions AVERAGE = (SCORE1 + SCORE2) / 2 MOVE SCORE1 TO ACCUMULATOR
  • 14. Designates that different logic paths will be followed based on a condition occurring in a program IS A = B? Yes No CODE = ? 1 2 3 4 5
  • 15. Assigns initial values to areas in storage and does whatever else is necessary to get ready for processing COUNTER = 0
  • 16. Links other symbols and indicates the sequence of operations •Normal flow is top to bottom and left to right •Arrowheads must be used when the flow is other than the normal flow
  • 17.
  • 18.  Avoid intersecting flowlines START STOP B C B A C A START STOP
  • 19.  Avoid multiple flowlines entering a symbol
  • 20.  Opening a file ◦ Before a file can be accessed, it must be opened ◦ Ensures that the file can be accessed ◦ Depending on the programming language, not all files need to be opened by the programmer--some are opened automatically by the language  Closing a file ◦ Close instruction tells the computer your are through accessing the file ◦ Some languages will automatically close files ◦ Writes the end-of-file record on output files Start Open Files Read a Record Write a line Close Files Stop
  • 21.  Copies the content of the record contained in secondary storage into the primary storage of the computer  The record is not physically moved from secondary to primary storage  Suppose the input record contains the name MARY SMITH. How does the computer know where in primary storage to put the record? Start Open Files Read a Record Write a line Close Files Stop
  • 22.  We learnt why flowcharts are needed before developing a program.  When flowcharts are made?  How to open and close a flowchart.  Various symbols while making a flowchart.
  • 23. Q1) Symbol used in flowchart such as rectangle with horizontal lines on two sides is used for a) defined statement b) predefined process c) error fix d) variables defined Q2) Diamond shaped symbol is used in flowcharts to show the a) decision box b) statement box c) error box d) if-statement box
  • 24. Q3) Link with another part of program or connectors in flowchart are shown in a) Rhombus b) Parallelogram c) Circle d) Trapezoid Q4) What symbol is used to represent output in a flowchart? a. Square b. Circle c. parallelogram d. triangle
  • 25. Q5) Which statement is used to indicate the end of a module? a. stop b. end c. return d. done
  • 26.  Programming using C language ‘ABS PUBLICATIONS’