Flowcharts! January 13, 2005 These are today’s notes! Do you think we will get more snow?

Slides:



Advertisements
Similar presentations
Nested if-else Statements.  Should be indented to make the logic clear.  Nested statement executed only when the branch it is in is executed. For example,
Advertisements

Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 4 Making Decisions in a Program.
Selection Flow Charts If statements. Flow of Control The flow of control is a concept we’ve already encountered. The concept of control relates to the.
Al-Karma Language School Computer Department Prep. 3.
Introduction to Flowcharting
Introduction to Flowcharting
Creating Flowcharts Principles Of Engineering
Introduction to Flowcharting
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 9 Decisions, Decisions, Decisions.
Introduction to Flowcharting A Supplement to Starting Out with C++, 4th Edition by Tony Gaddis Published by Addison-Wesley.
ME 142 Engineering Computation I Fundamentals of Procedural Computer Programming.
Chapter 1 Pseudocode & Flowcharts
Fundamentals of Algorithms MCS - 2 Lecture # 4
Chapter 2- Visual Basic Schneider
Flowchart Diagram Risanuri Hidayat. What A Flow Chart is a sequential diagram that shows the steps involved in an operation or task and the decisions.
PRESENTED BY NASIR ABBAS. FLOW CHART CONTENTS What is a flow chart? Flow chart symbols.
Introduction to Computers and Programming Class 6 Introduction to C Professor Avi Rosenfeld.
Relational Operators Control structures Decisions using “if” statements  2000 Prentice Hall, Inc. All rights reserved. Modified for use with this course.
Developing logic (Examples on algorithm and flowchart)
Flow Charts. Thinking Creatively Flow Charts START END Is A==6? No A = 1 Yes Print A A = A + 1.
(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
C++ If….Else Statements and Flowcharts October 10, 2007.
Introduction to Video Game Programming (VGP) Mr. Shultz.
PROGRAMMING LANGUAGES Prof. Lani Cantonjos. PROGRAM - set of step-by-step instructions that tells or directs the computer what to do. PROGRAMMING LANGUAGE.
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.
Lecture 2: Logical Problems with Choices. Problem Solving Before writing a program Have a thorough understanding of the problem Carefully plan an approach.
PSEUDOCODE C Programming Technique – Firdaus-Harun.com.
ALGORITHMS AND FLOWCHARTS CSCI 105 – Computer Fluency.
1 COMS 261 Computer Science I Title: C++ Fundamentals Date: September 21, 2005 Lecture Number: 10.
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 3 - Structured Program Development Outline 3.1Introduction 3.2Algorithms 3.3Pseudocode 3.4Control Structures 3.5The If Selection Structure 3.6The.
1 Program Planning and Design Important stages before actual program is written.
Flowcharting An Introduction. Definition A flowchart is a schematic representation of an algorithm or a process.
Lecture 2 Conditional Statement. chcslonline.org Conditional Statements in PHP Conditional Statements are used for decision making. Different actions.
(C)opyright 2000 Scott/Jones Publishers Introduction to Flowcharting.
Fundamentals of Algorithms MCS - 2 Lecture # 5. Representation of Algorithms (continued) Flowcharts.
Selection Flow Charts If statements. Flow of Control The flow of control is a concept with which we’re already familiar. The concept of control relates.
1 Introduction to Flowcharting Computer Science Principles ASFA.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Flowcharts. Learning Objectives To learn how to break down tasks How to create a flowchart.
Learning Objective To be able to… Understand flow chart symbols Complete and correct flow chart algorithms Create a program based on a flow chart.
Flow Charts. Flow charts A flowchart is a schematic (idea of doing something) representation of a process. They are commonly used in Computer Science.
An Introduction to Programming with C++ Sixth Edition Chapter 5 The Selection Structure.
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,
Lecture #8 SWITCH STATEMENT By Shahid Naseem (Lecturer)
Decision making If.. else statement.
ALGORITHMS AND FLOWCHARTS
GC101 Introduction to computers and programs
COVERED BASICS ABOUT ALGORITHMS AND FLOWCHARTS
Computer Programming Flowchart.
The Selection Structure
CSC113: Computer Programming (Theory = 03, Lab = 01)
Chapter 4: Control Structures
Numbering System TODAY AND TOMORROW 11th Edition
Introduction to Flowcharting
Microsoft Visual Basic 2005 BASICS
Structured Program Design
Decision making If statement.
Chapter 2- Visual Basic Schneider
ME 142 Engineering Computation I
Introduction to Programming
Introduction to Flowcharting
Structural Program Development: If, If-Else
Introduction to Programming
Introduction to Flowcharts
Presentation transcript:

Flowcharts! January 13, 2005 These are today’s notes! Do you think we will get more snow?

Flowcharts! Definition: Charts used to plan and to document program code. How? A flowchart uses symbols and shapes connected by lines to illustrate the steps of a program.

Symbols & Shapes? Rectangle – use the rectangle for processing data or for taking action.

Diamond – Use the diamond for making decisions. Yes No

Input/Output symbol (parallelogram) – Use this symbol to show that something is input or output.

Example: A grade program that checks if the grade is greater than or equal to 60. If yes, a message box is printed saying that the student has passed. If grade >= 60 then MsgBox(“Passed!”) End If Grade >= 60? MsgBox Passed

Example A grade program that checks if the grade is greater than or equal to 60. If yes, a message box is printed saying that the student has passed. If grade is less than 60 a message box saying student failed! If grade >= 60 then MsgBox(“Passed!”) Else MsgBox (“Failed!”) End If Grade >= 60? MsgBox Passed! MsgBox Failed! No Yes

Tomorrow’s Assignment! Create a Visual Basic Program for a teacher to enter a student’s grade and it should give the teacher a message whether the student passed or failed. Hint: You need to use an If…Else statement! See your notes.