Using Flowcharts. Sample Flowchart (without text) 2.

Slides:



Advertisements
Similar presentations
Representing an algorithm using Flowcharts
Advertisements

1 1 Eng. Mohamed Eltaher Eng.Ahmed Ibrahim Programming & Flowchart.
Al-Karma Language School Computer Department Prep. 3.
Introduction to Flowcharting
Introduction to Flowcharting
UNIT 2. Introduction to Computer Programming
Introduction to Flowcharting
Introduction to Flowcharting A Supplement to Starting Out with C++, 4th Edition by Tony Gaddis Published by Addison-Wesley.
Subject: Information Technology Grade: 10
Documentation Letts Study Guide Information Systems - IT Chapter 19.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 6-1 Systems Development and Documentation Techniques.
Computer Programming Rattapoom Waranusast Department of Electrical and Computer Engineering Faculty of Engineering, Naresuan University.
CS0004: Introduction to Programming Repetition – Do Loops.
Fundamentals of Algorithms MCS - 2 Lecture # 4
Chapter 2- Visual Basic Schneider
1 CSI 101 Elements of Computing Fall 2009 Lecture #4 Using Flowcharts Monday February 2nd, 2009.
Developing logic (Examples on algorithm and flowchart)
The Program Design Phases
Review Algorithm Analysis Problem Solving Space Complexity
(C)opyright 2003 Scott/Jones Publishers Introduction to Flowcharting A Supplement to Starting Out with C++, 4th Edition by Tony Gaddis Scott/Jones Publishers.
Algorithm & Flowchart.
Chapter 1 Pseudocode & Flowcharts
CSC103: Introduction to Computer and Programming
Computer Programming 12 Lesson 2 - Organizing the Problem By Dan Lunney.
PROGRAMMING, ALGORITHMS AND FLOWCHARTS
Flow Charting. Goals Create Algorithms using Flow Charting procedures. Distinguish between Flow Charting and Pseudocode. Top-Down Design Bottom-up Design.
Flowchart IDT. What is a flowchart? Visual representation of a flow of data Outline of process or a solution to a problem Outline the basic logic behind.
First tutorial.
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.
End Show Writing a computer program involves performing the following tasks. 1. Understanding the problem 2. Developing an Algorithm for the problem 3.
Flowcharts.
Visual Basic Programming
Writing JavaScript Functions. Goals By the end of this unit, you should understand … How to breakdown applications into individual, re-usable modules.
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.
Chapter 1 Pseudocode & Flowcharts
Agenda Basic Logic Purpose if statement if / else statement
1 Program Planning and Design Important stages before actual program is written.
(C)opyright 2000 Scott/Jones Publishers Introduction to Flowcharting.
Introduction to Computing Dr. Nadeem A Khan. Lecture 2.
Computer Programming TCP1224 Chapter 5 The Selection Structure.
Topic: Control Statements. Recap of Sequence Control Structure Write a program that accepts the basic salary and allowance amount for an employee and.
1 Introduction to Flowcharting Computer Science Principles ASFA.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
WHAT IS THIS? Clue…it’s a drink SIMPLE SEQUENCE CONTROL STRUCTURE Introduction A computer is an extremely powerful, fast machine. In less than a second,
FLOWCHARTING AND ALGORITHMS
Employees verify receipt of Performance Based Cash Awards via Employee Personal Page (EPP)
Problem Solving Flowcharts. Flowcharts Introduction  Flowcharts allow us to create a visual representation of a solution to a problem DRAW  With flowcharts,
Program Design & Development EE 201 C7-1 Spring
Computer Programming 12 Lesson 4 - Computer Programming Structure By Dan Lunney.
ALGORITHMS AND FLOWCHARTS
Flow Charts Basic Flow Chart Symbols Few sample flowcharts Rules
GC101 Introduction to computers and programs
Introduction to Flowcharting
Lesson 2 Flowcharting.
Flowchart Symbols Terminal Process Input/ Output Decision
Flowcharting Guidelines
Computer Programming Flowchart.
Introduction to Flowcharting
Chapter 5: Control Structure
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.
Introduction To Flowcharting
Introduction to Flowcharting
Structured Program Design
Faculty of Computer Science & Information System
Flowcharts and Pseudo Code
Tutorial 2: Algorithms.
Introduction to Programming
Developing a Program.
Introduction to Flowcharting
Presentation transcript:

Using Flowcharts

Sample Flowchart (without text) 2

Terminator  Starts and ends a process  Only one flow, either departing or entering START STOP 3

Process  Contains calculation or process  Can contain a sequence of consecutive operations  Has a single flow entering and a single flow exiting Calculate average Sum = A+B+C Ave = Sum/3 4

Decision  Condition whose result causes one of multiple calculations or processes  Stated as question with only YES or NO as answer  One flow entering and two flows exiting Is A > B? Yes No 5

Input/Output  Read input or write output  Only one operation, but can have multiple inputs or outputs  One flow entering and one flow exiting Read A,B,C 6

Connector  Brings together separate flows that are coming together to perform the same operation  Multiple flows entering, one flow exiting  Note there is no “disconnector” 7

Let us try an example 8  We want to build a program to calculate the salary of a finical consultant  We need to read the working hours and hourly rate from the consultant  Calculation: Hours*Pay Rate  Output: the gross pay

Quiz : Draw Flowchart  Let’s write a flowchart to detail the process of a user logging into a computer account  What’s the first step?  Determine input and output  Input: userid and password  Output: one of three situations:  Accepted  Incorrect userid  Incorrect password Please use PowerPoint to finish this quiz and upload your answer to blackboard system. 9

So what are our steps?  INPUT userid and password  CALL check of userid  DECISION: is userid valid?  No, send message to user and exit  Yes, continue  CALL check of password, passing userid  DECISION: OK?  No, send message to user and exit  Yes, send message of success and exit 10