Flowcharts.

Slides:



Advertisements
Similar presentations
CS 240 Computer Programming 1
Advertisements

How Are Algorithms Developed?
Prof. B. I. Khodanpur HOD – Dept. of CSE R. V. College of Engineering
Flowcharts Amir Haider Lecturer NFC IEFR. Introduction The flowchart is a means of visually presenting the flow of data through an information processing.
UNIT 2. Introduction to Computer Programming
Chapter 1 - An Introduction to Computers and Problem Solving
Chapter 2 - Problem Solving
Alexandria University Faculty of Science Computer Science Department
Documentation Letts Study Guide Information Systems - IT Chapter 19.
Reference :Understanding Computers
Flowchart TA. Maram Al-Khayyal.
ACG 4401 Data Modeling: Data Flow Diagrams Flow Charts.
Fundamentals of Algorithms MCS - 2 Lecture # 4
INTRODUCTION TO PROGRAMMING
Chapter 2- Visual Basic Schneider
Chapter 3 Planning Your Solution
The Program Design Phases
Programming Logic and System Analysis
Algorithm & Flowchart.
Fundamentals of C programming
Flowchart Guide Rules and Tips for Creating Flowchart Floachart Examples Flowchart Overview Benefits of Flowchart Start Alarm Rings Ready to Get.
1 Computer and Programming Flow Chart Derived from
CPS 120: Introduction to Computer Science
Chapter 3 Systems Documentation Techniques Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 3-1.
Flow Charting. Goals Create Algorithms using Flow Charting procedures. Distinguish between Flow Charting and Pseudocode. Top-Down Design Bottom-up Design.
Design the program Create a detailed description of program –Use charts or ordinary language (pseudocode) Identify algorithms needed –Algorithm: a step-by-step.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (4): Control Flow (Chapter 2)
ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with.
Flowcharting A Quality Improvement Tool. Quality = Inspection Statistical methods assisted in prevention of defects – The need for inspection declined.
First Steps in Modularization. Simple Program Design, Fourth Edition Chapter 8 2 Objectives In this chapter you will be able to: Introduce modularization.
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
1 Program Planning and Design Important stages before actual program is written.
Introduction to Flow Chart It is pictorial representation of process of a system or processes. Types of Flow charts –Program Flow Chart –System Flow chart.
Structured Programming (4 Credits)
The Hashemite University Computer Engineering Department
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
FLOWCHARTING AND ALGORITHMS
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Lecture 3 Computer Programming -1-. The main steps of program development to solve the problem: 1- problem definition : The problem must be defined into.
FLOW CHARTS IN PROCESS DESCRIPTION FRANK CHINGARANDE.
Program Design & Development EE 201 C7-1 Spring
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
 Problem Analysis  Coding  Debugging  Testing.
Algorithms and Flowcharts
Pseudocode (pronounced SOO-doh-kohd)  is a detailed yet readable description of what a computer program or algorithm must do, expressed in a formally-styled.
Chapter One Problem Solving
Tools Of Structured Analysis
Flow Charts Basic Flow Chart Symbols Few sample flowcharts Rules
MANUPLATION OF FLOWCHARTS
Lesson 2 Flowcharting.
Chapter One Problem Solving
Flowcharting Guidelines
Chapter 2- Visual Basic Schneider
Algorithms An algorithm is a sequence of steps written in the form of English phrases that specific the tasks that are performed while solving the problem.It.
Lecture 2 Introduction to Programming
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Algorithm Algorithm is a step-by-step procedure or formula or set of instruction for solving a problem Its written in English language or natural language.
Programming Logic n Techniques
Unit# 9: Computer Program Development
Chapter 2- Visual Basic Schneider
Manipulation of Charts with Visual Basic
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
Chapter 2- Visual Basic Schneider
ME 142 Engineering Computation I
How Are Algorithms Developed?
No Yes START Do you live in Scotland? Take umbrella See last Flowchart
Developing a Program.
Presentation transcript:

Flowcharts

What Is a Flowchart? A diagrammatic representation that illustrates the sequence of operations to be performed to get the solution of a problem. Facilitates communication and understanding ANSI (American National Standards Institute) has defined the symbols and their use Usually drawn in the early stages of formulating computer solutions. helpful in understanding the logic of problems. Makes if easier to write the program/problem it represents In some venues a flowchart is a must for the better documentation of a complex program or problem.

Standard Symbols used in a Flowchart Process symbol Indicates when a computational step occurs Terminal The start or end of the chart Input or output operation Is used whenever data (information that is manipulated or used to manipulate) is added to the program Or Or

Standard Symbols used in a Flowchart Condition or Decision Decision making and branching of code Connector Indicates where a separate part of the code is being addressed Common label is placed within the symbol Flow lines Indicate the flow of logic

Standard Symbols used in a Flowchart Preparation Setting up initial values Off-page connectors Used to connect different parts across pages. Again a common symbol followed by the page it is continued on…. or continued from will identify the different parts (http://www.flowhelp.com/flowchart/flowchart_connector_detail.html)

Guidelines when drawing a Flowchart All steps must be listed in order Clear, neat and easy to follow – should have no ambiguities (super clear) Flow travels top down, or left right Process symbols can only have 1 flow line out.

Guidelines continued Only on flow line should enter a decision symbol, but 2 or 3 flow lines may leave Only on flow line with a terminal symbol If the flowchart becomes complex use connector symbols to reduce the number of flow lines (place the section in another space) Yes No

Guidelines continued Avoid intersecting flow lines to be more effective and clear Make sure your flowchart has a logical start and finish To test your flowchart, use a simple example and step it through the steps of your algorithm. This should catch any errors in logic.

Advantages of Flowcharts For simple problems, they are a better way to communicate the logic of problem because it is a diagram. Helps in the analysis of a problem Can serve as a good way to document a problem Helps a programmer to code more efficiently and quickly Helps in the debugging process of a problem Helps with identifying where new features of fixes (maintenance) of a program can take place

Limitations of a Flowchart Complex problems cannot be solved with flowcharts because the flowcharts become clumsy and complicated (too hard to follow) Any alterations require a total redraw in most cases Reproducing flowchart symbols can be a pain The detail of the flowchart can mask the real problem we are solving. (Lost in the detail)

Example – making tea

Make a flowchart that sums all the numbers from 1 to 10

Make a flowchart that sums all the numbers from 1 to 10

Make a Flowchart describing a person getting woken by alarm and using the snooze button before getting out of bed

Make a Flowchart describing a person getting woken by alarm and using the snooze button before getting out of bed

Reference locations http://www.nos.org/htm/basic2.htm http://www.technologystudent.com/comps/comp6.htm http://www.squidoo.com/flowchartsymbols http://www.edrawsoft.com/flow-chart-design.php