SlideShare uma empresa Scribd logo
1 de 20
Introducing Flowcharts


Objectives
In this lesson, you will learn to:
 Identify input and output requirements
 Understand programs
 Represent logic by using flowcharts




©NIIT                                   PLT/Lesson 1/Slide 1 of 20
Introducing Flowcharts


Input, Process, and Output
 Phases
     Activities can be broken into separate phases
        ® The   first phase is called the input phase
        ® The   second phase is called the process phase
        ® The   last phase is known as the output phase




©NIIT                                      PLT/Lesson 1/Slide 2 of 20
Introducing Flowcharts


Input, Process, and Output (Contd.)
 I-P-O Cycle
     The cycle of activities performed by a computer is
      referred to as the Input-Process-Output cycle or
      the I-P-O cycle
     A computer consists of several components
     Each component participates in either one of the
      input, process, or output phases




©NIIT                                  PLT/Lesson 1/Slide 3 of 20
Introducing Flowcharts


Programs
Programs
     A computer is designed to accept input, process it,
      and generate output
     A set of instructions to perform a task is called a
      program
     A number of programs together form an application




©NIIT                                    PLT/Lesson 1/Slide 4 of 20
Introducing Flowcharts


Problem-Solving Techniques
 Flowcharts
     A flowchart is a graphical representation of the
      steps to be followed for solving a problem
     It consists of a set of symbols
     Each symbol represents a specific activity




©NIIT                                   PLT/Lesson 1/Slide 5 of 20
Introducing Flowcharts


Problem-Solving Techniques
 Symbols Used in Flowcharts
        Symbol                  Activity


                                Input


                                Processing


                                Output



©NIIT                          PLT/Lesson 1/Slide 6 of 20
Introducing Flowcharts


Problem-Solving Techniques
 Symbols Used in Flowcharts (Contd.)
        Symbol                          Activity
                                   Decision



                                   Procedure or
                                   Subroutine


                                    Flow lines


©NIIT                               PLT/Lesson 1/Slide 7 of 20
Introducing Flowcharts


Problem-Solving Techniques
 Symbols Used in Flowcharts (Contd.)
        Symbol                          Activity


                                  Terminator



                                  On page connector



                                  Off page connector

©NIIT                               PLT/Lesson 1/Slide 8 of 20
Introducing Flowcharts


Problem-Solving Techniques
 Symbols Used in Flowcharts (Contd.)
        Symbol                          Activity


                                    Annotation




©NIIT                               PLT/Lesson 1/Slide 9 of 20
Introducing Flowcharts


Just a Minute…
Match the following verbs with appropriate symbols:
Get, Write, Stop, Add, Start, Multiply, Read, Subtract,
Divide, Display, Input, Output, If


S. No.                Symbol                    Activity
1.


2.



©NIIT                                  PLT/Lesson 1/Slide 10 of 20
Introducing Flowcharts


Just a Minute…(Contd.)
S. No.           Symbol            Activity
3.


4.


5.




©NIIT                     PLT/Lesson 1/Slide 11 of 20
Introducing Flowcharts


Drawing Simple Flowcharts
Flowchart for Preparing Tea
                          Start



                  The Steps for Preparing tea




                  Input Water, Sugar,
                  Tea Leaves and Milk



                   Boil the Ingredients



                    Tea is Prepared



                          Stop

©NIIT                                           PLT/Lesson 1/Slide 12 of 20
Introducing Flowcharts


Drawing Simple Flowcharts (Contd.)
Flowchart for Manipulating Numbers

                         Start




                     Get a Number




                  Add 1 to the Number



                  Display the Number



                         Stop




©NIIT                                   PLT/Lesson 1/Slide 13 of 20
Introducing Flowcharts


Drawing Simple Flowcharts (Contd.)
Example
The value of sale made is calculated as the number of
units sold multiplied by the price per unit. Draw a
flowchart to calculate and print the sale value.




©NIIT                                PLT/Lesson 1/Slide 14 of 20
Introducing Flowcharts


Drawing Simple Flowcharts (Contd.)
                         Start




                  Input Units Sold




                   Input Unit Price



                  Multiply Units Sold
                    By Unit Price


                  Print Total Sale
                        Value


                         Stop



©NIIT                                   PLT/Lesson 1/Slide 15 of 20
Introducing Flowcharts


Drawing Simple Flowcharts (Contd.)
 Problem Statement 1.P.1
  Draw a flowchart to represent the procedure of
  admission of a student to NIIT.




©NIIT                                PLT/Lesson 1/Slide 16 of 20
Introducing Flowcharts


Drawing Simple Flowcharts (Contd.)
 Problem Statement 1.P.2
  Rearrange the steps given below in the order of
  correct sequence to add the two numbers and draw a
  flowchart for the same.
    1. Get the First Number
    2. Display the Result
    3. Stop
    4. Add the Two Numbers
    5. Get the Second Number
    6. Start

©NIIT                              PLT/Lesson 1/Slide 17 of 20
Introducing Flowcharts


Drawing Simple Flowcharts (Contd.)
 Problem Statement 1.P.3
  Draw a flowchart to accept five numbers and display
  the sum of the numbers.




©NIIT                                PLT/Lesson 1/Slide 18 of 20
Introducing Flowcharts


Drawing Simple Flowcharts (Contd.)
 Problem Statement 1.P.4
  Draw a flowchart to input any number, multiply it by 2,
  and display the result.




©NIIT                                  PLT/Lesson 1/Slide 19 of 20
Introducing Flowcharts

Summary
In this lesson, you learned that:
 The cycle of activities performed by a computer
  follows the Input-Process-Output cycle.
 A set of instructions to perform a particular job is
  called a program.
 A flowchart is a graphical representation of the steps
 to be followed for solving a problem.
 A flowchart consists of a set of symbols, where each
  symbol represents a specific activity.




©NIIT                                   PLT/Lesson 1/Slide 20 of 20

Mais conteúdo relacionado

Semelhante a Sem1 plt xp_01 (8)

Cs 1114 - lecture-2
Cs 1114 - lecture-2Cs 1114 - lecture-2
Cs 1114 - lecture-2
 
CHAPTER 1
CHAPTER 1CHAPTER 1
CHAPTER 1
 
Aae oop xp_01
Aae oop xp_01Aae oop xp_01
Aae oop xp_01
 
Fundamental Programming Lect 2
Fundamental Programming Lect 2Fundamental Programming Lect 2
Fundamental Programming Lect 2
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Introduction to-programming
Introduction to-programmingIntroduction to-programming
Introduction to-programming
 
CPCS202_01_Introduction.pptx
CPCS202_01_Introduction.pptxCPCS202_01_Introduction.pptx
CPCS202_01_Introduction.pptx
 
Basic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and FlowchartsBasic Slides on Algorithms and Flowcharts
Basic Slides on Algorithms and Flowcharts
 

Mais de Niit Care (20)

Ajs 1 b
Ajs 1 bAjs 1 b
Ajs 1 b
 
Ajs 4 b
Ajs 4 bAjs 4 b
Ajs 4 b
 
Ajs 4 a
Ajs 4 aAjs 4 a
Ajs 4 a
 
Ajs 4 c
Ajs 4 cAjs 4 c
Ajs 4 c
 
Ajs 3 b
Ajs 3 bAjs 3 b
Ajs 3 b
 
Ajs 3 a
Ajs 3 aAjs 3 a
Ajs 3 a
 
Ajs 3 c
Ajs 3 cAjs 3 c
Ajs 3 c
 
Ajs 2 b
Ajs 2 bAjs 2 b
Ajs 2 b
 
Ajs 2 a
Ajs 2 aAjs 2 a
Ajs 2 a
 
Ajs 2 c
Ajs 2 cAjs 2 c
Ajs 2 c
 
Ajs 1 a
Ajs 1 aAjs 1 a
Ajs 1 a
 
Ajs 1 c
Ajs 1 cAjs 1 c
Ajs 1 c
 
Dacj 4 2-c
Dacj 4 2-cDacj 4 2-c
Dacj 4 2-c
 
Dacj 4 2-b
Dacj 4 2-bDacj 4 2-b
Dacj 4 2-b
 
Dacj 4 2-a
Dacj 4 2-aDacj 4 2-a
Dacj 4 2-a
 
Dacj 4 1-c
Dacj 4 1-cDacj 4 1-c
Dacj 4 1-c
 
Dacj 4 1-b
Dacj 4 1-bDacj 4 1-b
Dacj 4 1-b
 
Dacj 4 1-a
Dacj 4 1-aDacj 4 1-a
Dacj 4 1-a
 
Dacj 1-2 b
Dacj 1-2 bDacj 1-2 b
Dacj 1-2 b
 
Dacj 1-3 c
Dacj 1-3 cDacj 1-3 c
Dacj 1-3 c
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Último (20)

Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

Sem1 plt xp_01

  • 1. Introducing Flowcharts Objectives In this lesson, you will learn to: Identify input and output requirements Understand programs Represent logic by using flowcharts ©NIIT PLT/Lesson 1/Slide 1 of 20
  • 2. Introducing Flowcharts Input, Process, and Output Phases Activities can be broken into separate phases ® The first phase is called the input phase ® The second phase is called the process phase ® The last phase is known as the output phase ©NIIT PLT/Lesson 1/Slide 2 of 20
  • 3. Introducing Flowcharts Input, Process, and Output (Contd.) I-P-O Cycle The cycle of activities performed by a computer is referred to as the Input-Process-Output cycle or the I-P-O cycle A computer consists of several components Each component participates in either one of the input, process, or output phases ©NIIT PLT/Lesson 1/Slide 3 of 20
  • 4. Introducing Flowcharts Programs Programs A computer is designed to accept input, process it, and generate output A set of instructions to perform a task is called a program A number of programs together form an application ©NIIT PLT/Lesson 1/Slide 4 of 20
  • 5. Introducing Flowcharts Problem-Solving Techniques Flowcharts A flowchart is a graphical representation of the steps to be followed for solving a problem It consists of a set of symbols Each symbol represents a specific activity ©NIIT PLT/Lesson 1/Slide 5 of 20
  • 6. Introducing Flowcharts Problem-Solving Techniques Symbols Used in Flowcharts Symbol Activity Input Processing Output ©NIIT PLT/Lesson 1/Slide 6 of 20
  • 7. Introducing Flowcharts Problem-Solving Techniques Symbols Used in Flowcharts (Contd.) Symbol Activity Decision Procedure or Subroutine Flow lines ©NIIT PLT/Lesson 1/Slide 7 of 20
  • 8. Introducing Flowcharts Problem-Solving Techniques Symbols Used in Flowcharts (Contd.) Symbol Activity Terminator On page connector Off page connector ©NIIT PLT/Lesson 1/Slide 8 of 20
  • 9. Introducing Flowcharts Problem-Solving Techniques Symbols Used in Flowcharts (Contd.) Symbol Activity Annotation ©NIIT PLT/Lesson 1/Slide 9 of 20
  • 10. Introducing Flowcharts Just a Minute… Match the following verbs with appropriate symbols: Get, Write, Stop, Add, Start, Multiply, Read, Subtract, Divide, Display, Input, Output, If S. No. Symbol Activity 1. 2. ©NIIT PLT/Lesson 1/Slide 10 of 20
  • 11. Introducing Flowcharts Just a Minute…(Contd.) S. No. Symbol Activity 3. 4. 5. ©NIIT PLT/Lesson 1/Slide 11 of 20
  • 12. Introducing Flowcharts Drawing Simple Flowcharts Flowchart for Preparing Tea Start The Steps for Preparing tea Input Water, Sugar, Tea Leaves and Milk Boil the Ingredients Tea is Prepared Stop ©NIIT PLT/Lesson 1/Slide 12 of 20
  • 13. Introducing Flowcharts Drawing Simple Flowcharts (Contd.) Flowchart for Manipulating Numbers Start Get a Number Add 1 to the Number Display the Number Stop ©NIIT PLT/Lesson 1/Slide 13 of 20
  • 14. Introducing Flowcharts Drawing Simple Flowcharts (Contd.) Example The value of sale made is calculated as the number of units sold multiplied by the price per unit. Draw a flowchart to calculate and print the sale value. ©NIIT PLT/Lesson 1/Slide 14 of 20
  • 15. Introducing Flowcharts Drawing Simple Flowcharts (Contd.) Start Input Units Sold Input Unit Price Multiply Units Sold By Unit Price Print Total Sale Value Stop ©NIIT PLT/Lesson 1/Slide 15 of 20
  • 16. Introducing Flowcharts Drawing Simple Flowcharts (Contd.) Problem Statement 1.P.1 Draw a flowchart to represent the procedure of admission of a student to NIIT. ©NIIT PLT/Lesson 1/Slide 16 of 20
  • 17. Introducing Flowcharts Drawing Simple Flowcharts (Contd.) Problem Statement 1.P.2 Rearrange the steps given below in the order of correct sequence to add the two numbers and draw a flowchart for the same. 1. Get the First Number 2. Display the Result 3. Stop 4. Add the Two Numbers 5. Get the Second Number 6. Start ©NIIT PLT/Lesson 1/Slide 17 of 20
  • 18. Introducing Flowcharts Drawing Simple Flowcharts (Contd.) Problem Statement 1.P.3 Draw a flowchart to accept five numbers and display the sum of the numbers. ©NIIT PLT/Lesson 1/Slide 18 of 20
  • 19. Introducing Flowcharts Drawing Simple Flowcharts (Contd.) Problem Statement 1.P.4 Draw a flowchart to input any number, multiply it by 2, and display the result. ©NIIT PLT/Lesson 1/Slide 19 of 20
  • 20. Introducing Flowcharts Summary In this lesson, you learned that: The cycle of activities performed by a computer follows the Input-Process-Output cycle. A set of instructions to perform a particular job is called a program. A flowchart is a graphical representation of the steps to be followed for solving a problem. A flowchart consists of a set of symbols, where each symbol represents a specific activity. ©NIIT PLT/Lesson 1/Slide 20 of 20