II N T R O D U C T I O N PP R E T E S T DD E S I G N I N G A L G O R I T H M DD E S I G N I N G F L O W C H A R T GG E N E R A L R U L E S F.

Slides:



Advertisements
Similar presentations
CS 240 Computer Programming 1
Advertisements

UNIT 2. Introduction to Computer Programming
Documentation Letts Study Guide Information Systems - IT Chapter 19.
Reference :Understanding Computers
ME 142 Engineering Computation I Fundamentals of Procedural Computer Programming.
CS 240 Computer Programming 1
INTRODUCTION TO PROGRAMMING
ITEC113 Algorithms and Programming Techniques
Chapter 2- Visual Basic Schneider
LECTURER: DR MASRI AYOB Dr. Masri Ayob: TK2633 TK2633: MICROPROCESSOR & INTERFACING Structured Assembly Language Programming.
Lecture Notes 8/30/05 Program Design & Intro to Algorithms.
Chapter 3 Planning Your Solution
Flow Charts. Thinking Creatively Flow Charts START END Is A==6? No A = 1 Yes Print A A = A + 1.
The Program Design Phases
Algorithm & Flowchart.
Fundamentals of C programming
1 Computer and Programming Flow Chart Derived from
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.
Design the program Create a detailed description of program –Use charts or ordinary language (pseudocode) Identify algorithms needed –Algorithm: a step-by-step.
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.
Programming Concepts Chapter 3.
Introduction to Computers (L02) * Hardware * Software * Programming Languages * Three Phase of Program Development * Development and Design Steps * Algorithms.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Flowcharts.
A step-by-step procedure for solving a problem in a finite number of steps.
Flowcharts. Problem Solving Computer programs are written to solve problems or perform tasks Programmers translate the solutions or tasks into a language.
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.
Algorithms & Flowchart
ITEC113 Algorithms and Programming Techniques
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.
Basic problem solving CSC 111.
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
CS 100 Introduction to Computing Seminar September 21, 2015.
Introducing block scheme programming March 17. Algorithm / Flow chart An algorithm or a flowchart is a step-by-step procedure for solving a particular.
Visual Basic Flowcharts October 10, Turn in your vocabulary words before you leave!
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
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.
ICS124 Session 9 Flowcharting 1. By the end of this section the student will be able to:  Name the three structures of the Structure Theorem  Identify.
How Computers Solve Problems Computers also use Algorithms to solve problems, and change data into information Computers can only perform one simple step.
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
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.
CMSC 104, L041 Algorithms, Part 1 of 3 Topics Definition of an Algorithm Example: The Euclidean Algorithm Syntax versus Semantics Reading Sections 3.1.
Learning outcomes 5 Developing Code – Using Flowcharts
Algorithms, Part 1 of 3 The First step in the programming process
Flow Charts Basic Flow Chart Symbols Few sample flowcharts Rules
Introduction to Flowcharting
Chapter 2- Visual Basic Schneider
Introduction to Computing
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.
Numbering System TODAY AND TOMORROW 11th Edition
CSE322 Recursive and Recursively enumerable sets
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.
CPSC 1301 Columbus State University
Unit# 9: Computer Program Development
Program Control using Java - Theory
Chapter 2- Visual Basic Schneider
Introduction to Algorithms and Programming
Chapter 2- Visual Basic Schneider
ME 142 Engineering Computation I
Introduction to Flowcharts
Click to add Text Computers & Instructions. Computers are given instructions in the form of computer programs that are created through the development.
WJEC GCSE Computer Science
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Introduction to Programming
Introduction to Flowcharts
Presentation transcript:

II N T R O D U C T I O N PP R E T E S T DD E S I G N I N G A L G O R I T H M DD E S I G N I N G F L O W C H A R T GG E N E R A L R U L E S F O R F L O W C H A R T I N G PP O S T T E S T CC R E D I T S / A C K N O W L E D G E M E N T

INTRODUCTION Designing the right algorithm for a given application is a difficult job. It requires a major creative act, taking a problem and pulling a solution out of the ether. The key to algorithm design is to proceed by asking yourself a sequence of questions to guide your thought process.

1.What is a diagram made up of boxes, diamonds and other shapes ? A. FFLOW CHART B. AALGORITHM C. FFLOW CHART SYMBOL D. FFLOWCHARTING

2.What is a representation of a solution to a problem ? A. FFLOW CHART B. AALGORITHM C. FFLOW CHART SYMBOL D. FFLOWCHARTING

3.What is a tool developed in computer industry, for showing the steps involved in process ? A. FFLOWCHART B. AALGORITHM C. FFLOWCHART SYMBOL D. FFLOWCHARTING

4.What is a finite sequence of well defined instruction ? A. FFLOWCHART B. AALGORITHM C. FFLOWCHART SYMBOL D. PPROCEDURE

ALGORITHM An algorithm is a representation of a solution to a problem. If a problem can be defined as a difference between a desired situation and the current situation in which one is, then a problem solution is a procedure, or method, for transforming the current situation to the desired one.

An algorithm is procedure consisting of a finite set of unambiguous rules (instructions)which specify a finite sequence of operations that provides the solution to a problem, or to a specific class of problems for any allowable set of input quantities,In other word, an algorithm is a step-by-step procedure to solve a given Problem.

PROCEDURE A procedure is a finite sequence of well- defined instructions, each of which can be mechanically carried out in a finite amount of time. The procedure must break up the problem solution into parts that the recipient party can understand and execute.

FLOWCHART A flowchart is a diagram made up of boxes, diamonds and other shapes, connected by arrows - each shape represents a step in the process, and the arrows show the order in which they occur. Flowcharting combines symbols and flow lines, to show figuratively the operation of an algorithm.

FLOWCHARTING Flowcharting is a tool developed in the computer industry, for showing the steps involved in a process. Process improvement starts with an understanding of the process, and flowcharting is the first step towards process understanding.

FLOWCHART SYMBOLS There are 6 basic symbols commonly used in flowcharting of assembly language programs: Terminal, Process, input/output, Decision, Connector and Predefined Process. This is not a complete list of all the possible flowcharting symbols, it is the ones used Most often in the structure of Assembly language programming.

1. All boxes of the flowchart are connected with Arrows. (Not lines) 2. Flowchart symbols have an entry point on the top of the symbol with no other entry points. The exit point for all flowchart symbols is on the bottom except for the Decision symbol. 3. The Decision symbol has two exit points; these can be on the sides or the bottom and one side.

5.What is the ones used in the structure of assembly language programing ? A. FFLOWCHART B. AALGORITHM C. FFLOWCHART SYMBOL D. PPROCEDURE