ECE 3561 - Lecture 1 1 L8:Flowcharting a program Department of Electrical and Computer Engineering The Ohio State University ECE 2560.

Slides:



Advertisements
Similar presentations
ALGORITHMS AND FLOWCHARTS
Advertisements

CS 101 Introductory Programming - Lecture 7: Loops In C & Good Coding Practices Presenter: Ankur Chattopadhyay.
Code Composer Department of Electrical and Computer Engineering
1 CS101 Introduction to Computing Lecture 17 Algorithms II.
How Are Algorithms Developed?
ALGORITHMS THIRD YEAR BANHA UNIVERSITY FACULTY OF COMPUTERS AND INFORMATIC Lecture two Dr. Hamdy M. Mousa.
Lesson 5 - Decision Structure By: Dan Lunney
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 9 Decisions, Decisions, Decisions.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
ME 142 Engineering Computation I Fundamentals of Procedural Computer Programming.
زبانهای برنامه سازی برنامه سازی پیشرفته ارائه دهنده دکتر سيد امين حسيني E.mail: Home page:
Computer Programming Rattapoom Waranusast Department of Electrical and Computer Engineering Faculty of Engineering, Naresuan University.
LAB Flow Control Instructions
Tutorial #7 Flowcharts (reprise) Program Design. Introduction We mentioned it already, that if we thing of an analyst as being analogous to an architect,
Flow Charts. Thinking Creatively Flow Charts START END Is A==6? No A = 1 Yes Print A A = A + 1.
The Program Design Phases
Review Algorithm Analysis Problem Solving Space Complexity
PRE-PROGRAMMING PHASE
ALGORITHMS AND FLOWCHARTS
CIS Computer Programming Logic
Flow Charting. Goals Create Algorithms using Flow Charting procedures. Distinguish between Flow Charting and Pseudocode. Top-Down Design Bottom-up Design.
L12-Computing Factorial
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Flowcharts.
CPS120 Introduction to Computer Programming The Programming Process.
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
ALGORITHMS AND FLOWCHARTS CSCI 105 – Computer Fluency.
Chapter 2: General Problem Solving Concepts
Definition of Terms Software/Programs Programs that directs the operation of a computer system Set of instructions Codes Programming Process of planning,
ECE Lecture 1 1 L7 – A First Program Department of Electrical and Computer Engineering The Ohio State University ECE 2560.
ECE Lecture 1 1 L11-HLL to Assembler Department of Electrical and Computer Engineering The Ohio State University ECE 2560.
`. Lecture Overview Structure Programming Basic Control of Structure Programming Selection Logical Operations Iteration Flowchart.
How Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
Computer Architecture CSE 3322 Lecture 3 Assignment: 2.4.1, 2.4.4, 2.6.1, , Due 2/3/09 Read 2.8.
ECE 448 – FPGA and ASIC Design with VHDL Lecture 19 PicoBlaze Interrupt Interface & Assembly Code Development.
General Computer Science for Engineers CISC 106 Lecture 2^4 Roger Craig Computer and Information Sciences 03/23/2009.
ECE Lecture 1 1 L13a – Integer add Department of Electrical and Computer Engineering The Ohio State University ECE 2560.
1 Overview of Programming Principles of Computers.
Problem-solving with Computers. 2Outline  Computer System  5 Steps for producing a computer program  Structured program and programming  3 types of.
FLOWCHARTING AND ALGORITHMS
Flowcharts C++ Lab. Algorithm An informal definition of an algorithm is: a step-by-step method for solving a problem or doing a task. Input data A step-by-step.
Flow Control in Imperative Languages. Activity 1 What does the word: ‘Imperative’ mean? 5mins …having CONTROL and ORDER!
Introduction to Computer Programming using Fortran 77.
Fundamentals of Algorithms MCS - 2 Lecture # 3. Representation of Algorithms.
Introduction to Problem Solving Programming is a problem solving activity. When you write a program, you are actually writing an instruction for the computer.
Computer Science 210 Computer Organization Machine Language Instructions: Control.
3.Instruction Set of 8085 Consists of 74 operation codes, e.g. MOV
Numbering System TODAY AND TOMORROW 11th Edition
2.0 Problem Solving PROGRAM DESIGN
L7 – Assembler Directives
Programming Fundamentals
Assembler, Compiler, Interpreter
ALGORITHMS AND FLOWCHARTS
CPS120: Introduction to Computer Science
Final Exam Review Department of Electrical and Computer Engineering
Computer Science 210 Computer Organization
Computers & Programming Languages
CS-401 Computer Architecture & Assembly Language Programming
ALGORITHMS AND FLOWCHARTS
L13b – 32 bit multiply Department of Electrical and
EECE.3170 Microprocessor Systems Design I
EECE.3170 Microprocessor Systems Design I
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
` Structured Programming & Flowchart
Faculty of Computer Science & Information System
ME 142 Engineering Computation I
Assembler, Compiler, Interpreter
Flowcharting & Algorithms
The structure of programming
Computer Programming (CS101) Lecture-02
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Presentation transcript:

ECE Lecture 1 1 L8:Flowcharting a program Department of Electrical and Computer Engineering The Ohio State University ECE 2560

Flowcharting Where does flowcharting come in? Flowcharting symbols and examples Flowcharting a program ECE Lecture 1 2

What is flowcharting Flowcharting is a method of documenting an algorithm or method for performing a sequence of actions. Could be something that is not intended for a computer program. Provides a graphical view of the process or method. For assembler language can even indicate register and memory usage ECE Lecture 1 3

Flowcharting symbols Straight action (or code sequence) Enclosed in a box – sequence of code goes in the box. Example – exchange 2 items A - -> Temp B - -> A Temp - -> B ECE Lecture 1 4

Flowcharting symbols Decision structure Example dec I jge yes Code for false branch jmp after yes Code for true branch aftercode that follows structure ECE Lecture 1 5

Flowcharting loops A for loop For I = 1 to 10 Loop code in loop End loop; ECE Lecture 1 6

Flowchart for a problem We considered multiply routine (note: different register numbers used here) Note symbol for subroutine and enter/return ECE Lecture 1 7

Other flowchart symbols Have seem actions, decision, subprocess, enter/return A couple of others that are often used ECE Lecture 1 8

Flowchart hierarcy Flowchart can be written such that what is in the action (process) box is a high level statement. The high level statement can be a program in and of itself OR A flowchart can be done indicating assembler instructions and which registers are used. ECE Lecture 1 9