Sem1 plt xp_01
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Sem1 plt xp_01

on

  • 1,594 views

Old Slides

Old Slides

Statistics

Views

Total Views
1,594
Views on SlideShare
1,549
Embed Views
45

Actions

Likes
2
Downloads
32
Comments
0

1 Embed 45

http://niitcourseslides.blogspot.in 45

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Sem1 plt xp_01 Presentation Transcript

  • 1. Introducing FlowchartsObjectivesIn 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 FlowchartsInput, 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 FlowchartsInput, 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 FlowchartsProgramsPrograms  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 FlowchartsProblem-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 FlowchartsProblem-Solving Techniques Symbols Used in Flowcharts Symbol Activity Input Processing Output©NIIT PLT/Lesson 1/Slide 6 of 20
  • 7. Introducing FlowchartsProblem-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 FlowchartsProblem-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 FlowchartsProblem-Solving Techniques Symbols Used in Flowcharts (Contd.) Symbol Activity Annotation©NIIT PLT/Lesson 1/Slide 9 of 20
  • 10. Introducing FlowchartsJust a Minute…Match the following verbs with appropriate symbols:Get, Write, Stop, Add, Start, Multiply, Read, Subtract,Divide, Display, Input, Output, IfS. No. Symbol Activity1.2.©NIIT PLT/Lesson 1/Slide 10 of 20
  • 11. Introducing FlowchartsJust a Minute…(Contd.)S. No. Symbol Activity3.4.5.©NIIT PLT/Lesson 1/Slide 11 of 20
  • 12. Introducing FlowchartsDrawing Simple FlowchartsFlowchart 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 FlowchartsDrawing 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 FlowchartsDrawing Simple Flowcharts (Contd.)ExampleThe value of sale made is calculated as the number ofunits sold multiplied by the price per unit. Draw aflowchart to calculate and print the sale value.©NIIT PLT/Lesson 1/Slide 14 of 20
  • 15. Introducing FlowchartsDrawing 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 FlowchartsDrawing 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 FlowchartsDrawing 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 FlowchartsDrawing 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 FlowchartsDrawing 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 FlowchartsSummaryIn 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