Computer Programming Flowchart.

Slides:



Advertisements
Similar presentations
C Programming Technique – Firdaus-Harun.com
Advertisements

ALGORITHMS AND FLOWCHARTS
CS 240 Computer Programming 1
Exercise (1).
PROBLEM SOLVING TECHNIQUES
Flow Control Analysis & Design Tool: Flowcharts
UNIT 2. Introduction to Computer Programming
Introduction to Flowcharting A Supplement to Starting Out with C++, 4th Edition by Tony Gaddis Published by Addison-Wesley.
ALGORITHMS AND FLOWCHARTS
Getting Ready for the NOCTI test
CS 240 Computer Programming 1
Chapter 1 Pseudocode & Flowcharts
Fundamentals of Algorithms MCS - 2 Lecture # 4
Flow Chart.
Chapter 2- Visual Basic Schneider
Developing logic (Examples on algorithm and flowchart)
Algorithm & Flowchart.
Chapter 1 Pseudocode & Flowcharts
ALGORITHMS AND FLOWCHARTS
1 Introduction to Flowcharting. 2 Writing a program Defining the problem –Write down what the program will do Planning –Write down the steps, draw a flowchart.
1 Introduction to Flowcharting. 2 Writing a program Defining the problem –Write down what the program will do Planning –Write down the steps, draw a flowchart.
Flowcharts! January 13, 2005 These are today’s notes! Do you think we will get more snow?
End Show Writing a computer program involves performing the following tasks. 1. Understanding the problem 2. Developing an Algorithm for the problem 3.
Software Life Cycle What Requirements Gathering, Problem definition
Algorithm & Flow Charts
Flowcharts.
PSEUDOCODE C Programming Technique – Firdaus-Harun.com.
ALGORITHMS AND FLOWCHARTS CSCI 105 – Computer Fluency.
Program Planning and Design. What is Program Planning and Design? Program planning and design is simply knowing what you want to do and how you want to.
Flowcharting An Introduction. Definition A flowchart is a schematic representation of an algorithm or a process.
(C)opyright 2000 Scott/Jones Publishers Introduction to Flowcharting.
Fundamentals of Algorithms MCS - 2 Lecture # 5. Representation of Algorithms (continued) Flowcharts.
LESSON 1 Introduction to Programming Language. Computer  Comprised of various devices that are referred to as HARDWARE.  The computer programs that.
Problem, Problem Solving, Algorithm & Flow Charts –Part 1 Presented By Manesh T Course:101 CS 101CS Manesh T1.
ALGORITHMS AND FLOWCHARTS. A typical programming task can be divided into two phases: Problem solving phase  produce an ordered sequence of steps that.
Lecture 2: Introduction to Programming EEE2108: 공학프로그래밍 서강대학교 전자공학과 2011 학년도 2 학기 - Algorithms and Flowcharts -
Flow Charts And Pseudo Codes Grade 12. An algorithm is a complete step-by- step procedure for solving a problem or accomplishing a task.
Problem Solving Flowcharts. Flowcharts Introduction  Flowcharts allow us to create a visual representation of a solution to a problem DRAW  With flowcharts,
CSE 110: Programming Language I Matin Saad Abdullah UB 404.
Program design Program Design Process has 2 phases:
ALGORITHMS AND FLOWCHARTS
Algorithm: procedure in terms of
GC101 Introduction to computers and programs
Lesson 2 Flowcharting.
Flowchart Symbols Terminal Process Input/ Output Decision
Unit 3: ALGORITHMS AND FLOWCHARTS
Problem , Problem Solving, Algorithm & Flow Charts –Part 1
Computer Programming.
COVERED BASICS ABOUT ALGORITHMS AND FLOWCHARTS
Programming Flowcharts
CS111 Computer Programming
Introduction to Flowcharting
Numbering System TODAY AND TOMORROW 11th Edition
ALGORITHMS AND FLOWCHARTS
Chapter 1 Pseudocode & Flowcharts
Program Control using Java - Theory
ALGORITHMS AND FLOWCHARTS
PROBLEM SOLVING CSC 111.
Structured Program Design
ALGORITHMS AND FLOWCHARTS
Chapter 1 Pseudocode & Flowcharts
Chapter 2- Visual Basic Schneider
ME 142 Engineering Computation I
System Analysis and Design
Flowchart.
Introduction to Programming
Start or end of algorithm: Action/process step:
Introduction to Flowcharting
Chapter 1 Pseudocode & Flowcharts
Introduction to Flowcharts
Presentation transcript:

Computer Programming Flowchart

Objectives Flowchart Calculations Decision Making (Selection) Iteration (Repetition)

Flowchart

Flowchart Graphical representation of an algorithm Components: Arrows/lines: Flow of control Parallelogram: Indicates input and output operations Rectangle symbol (action symbol): Indicates any type of action/computational step Oval symbol: Indicates the start or the end of a program or a section of code Diamond: Decision.

Flowchart Notations Arrows Diamond Parallelogram Oval Rectangle

Flowchart Notations

Calculations

Example: Add Two Numbers START READ A,B Sum = A+B PRINT Sum Stop

Example: Add Three Numbers START READ A,B,C Sum = A + B + C PRINT Sum Stop

Example: Average of Three Numbers READ A,B,C Avg = (A+B+C) / 3 PRINT Avg START Stop Sum= A+B+C Avg = Sum / 3

Example: Print “Hello” START PRINT “Hello” Stop

Example: Area of a Circle START READ R Area = 3.14 * R * R PRINT Area Stop

Decision Making (Selection)

Example: Max. of Two Number START READ N1, N2 PRINT N1 Yes No PRINT N2 If N1>N2 Stop

Example: Pass or Fail START READ D PRINT “Pass” Yes No PRINT “Fail” If D>=60 Stop

Example: Degree to Grade START READ D PRINT “A” Yes No No No PRINT “F” If D>=90 If D>=80 If D>=70 Yes Yes PRINT “B” PRINT “C” Stop

Iteration (Repetition)

Example: Print numbers from 0 to 4

Example: Print numbers from 0 to 10

Example: Print even numbers from 0 to 10

Example: Print odd numbers from 0 to 10

Example: Print the summation of the numbers from 0 to 10