Program Flow Charting How to tackle the beginning stage a program design.

Slides:



Advertisements
Similar presentations
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 15 Programming and Languages: Telling the Computer What to Do.
Advertisements

CHAPTER 2 GC101 Program’s algorithm 1. COMMUNICATING WITH A COMPUTER  Programming languages bridge the gap between human thought processes and computer.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Welcome to CMPE003 Personal Computer Concepts: Hardware and Software Winter 2003 UC Santa Cruz Instructor: Guy Cox.
Chapter 2- Visual Basic Schneider
1 Program Flow Charting How to tackle the beginning stage a program design.
Computers: Tools for an Information Age
Program Flow Charting How to tackle the beginning stage a program design.
Chapter 16 Programming and Languages: Telling the Computer What to Do.
Program Development and Programming Languages
COBOL for the 21 st Century Stern, Stern, Ley Chapter 1 INTRODUCTION TO STRUCTURED PROGRAM DESIGN IN COBOL.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Lecture Notes 8/30/05 Program Design & Intro to Algorithms.
McGraw-Hill Technology Education © 2006 by the McGraw-Hill Companies, Inc. All rights reserved CHAPTER PROGRAMMING AND LANGUAGES.
1414 CHAPTER PROGRAMMING AND LANGUAGES. © 2005 The McGraw-Hill Companies, Inc. All Rights Reserved Competencies Describe the six steps of programming.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Programming Concepts and Languages Chapter 12 – Computers: Understanding Technology, 3 rd edition 1November
Your Interactive Guide to the Digital World Discovering Computers 2012.
Chapter 2: Developing a Program Prelude to Programming Concepts and Design Copyright © 2001 Scott/Jones, Inc.. All rights reserved. 1 Chapter 2 Developing.
Programming Languages: Telling the Computers What to Do Chapter 16.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
Structured COBOL Programming, Stern & Stern, 9th edition
CC111 Lec#5: Program Development 1 Program Development and Programming Languages Lecture 4 Reference :Understanding Computers Chapter 13.
1 Computing Software. Programming Style Programs that are not documented internally, while they may do what is requested, can be difficult to understand.
Chapter 3: Completing the Problem- Solving Process and Getting Started with C++ Introduction to Programming with C++ Fourth Edition.
PROGRAMMING LANGUAGES Prof. Lani Cantonjos. PROGRAM - set of step-by-step instructions that tells or directs the computer what to do. PROGRAMMING LANGUAGE.
Programming Lifecycle
CMPE13Cyrus Bazeghi 1 Programming Languages Telling computers what to do.
The Software Development Life Cycle. Software Development SDLC The Software Development Life-Cycle Sometimes called the program development lifecycle.
© 2011 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Stewart Venit ~ Elizabeth Drake Developing a Program.
Problem Solving using the Science of Computing MSE 2400 EaLiCaRA Spring 2015 Dr. Tom Way.
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
Copyright © Prentice Hall Programming and Languages Chapter 14 Telling the Computer What to Do.
Programming at a high level. Developing a Computer Program Programmer  Writes program in source code (VB or other language) Compiler  Converts source.
The Programming Process Define the problem* Make or buy software? Design the program * Code (write) the program Test (debug) the program Document the.
Introduction to Computer Application (IC) MH Room 517 Time : 7:00-9:30pm.
CHAPTER 1 INTRODUCTION 1 st Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
The basics of the programming process The development of programming languages to improve software development Programming languages that the average user.
1 Program Planning and Design Important stages before actual program is written.
CHAPTER 1 INTRODUCTION 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
Programming at a high level. Developing a Computer Program Programmer  Writes program in source code (VB or other language) Compiler  Converts source.
Structured Programming (4 Credits)
Chapter 14 Programming and Languages McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved.
How Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
Alexandria University Faculty of Science Computer Science Department Introduction to Programming C++
Evolution of C and C++ n C was developed by Dennis Ritchie at Bell Labs (early 1970s) as a systems programming language n C later evolved into a general-purpose.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 1: Introduction to Computers and Programming.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
Programming Logic and Design Seventh Edition Chapter 1 An Overview of Computers and Programming.
Your Interactive Guide to the Digital World Discovering Computers 2012 Chapter 13 Computer Programs and Programming Languages.
13 1 Computer Programming Ch.15-A,B,C FALL 2000 Rob Wolfe.
Chapter 1 Introduction 2nd Semester H
Programming Languages
CSCI-235 Micro-Computer Applications
Chapter 2- Visual Basic Schneider
Chapter 2- Visual Basic Schneider
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
Chapter 2- Visual Basic Schneider
The Programming Process
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Programming Logic and Design Eighth Edition
Presentation transcript:

Program Flow Charting How to tackle the beginning stage a program design

CMPE12cGabriel Hugh Elkaim 2 A Program Set of instructions written in a programming language that tells the computer what to do

CMPE12cGabriel Hugh Elkaim 3 Programmers Prepare instructions that make up the program Run the instructions to see if they produce the correct results Make corrections Document the program Interact with –Users –Managers –Systems analysts Coordinate with other programmers to build a complete system

CMPE12cGabriel Hugh Elkaim 4 The Programming Process Defining the problem Planning the solution Coding the program Testing the program Documenting the program

CMPE12cGabriel Hugh Elkaim 5 The Programming Process: Defining the Problem What is the input What output do you expect How do you get from the input to the output

CMPE12cGabriel Hugh Elkaim 6 The Programming Process: Planning the Solution Algorithms –Detailed solutions to a given problem Sorting records, adding sums of numbers, etc.. Design tools –Flowchart –Pseudocode Has logic structure, but no command syntax

CMPE12cGabriel Hugh Elkaim 7 Desk-checking –Personal code design walk through Peer Reviews –“Code walk through”/structured walk through The Programming Process: Planning the Solution

CMPE12cGabriel Hugh Elkaim 8 The Origin of the Algorithm From “The Cartoon Guide to Computer Science,” by Larry Gonick

CMPE12cGabriel Hugh Elkaim 9

CMPE12cGabriel Hugh Elkaim 10

CMPE12cGabriel Hugh Elkaim 11

CMPE12cGabriel Hugh Elkaim 12 The Indian Numerals

CMPE12cGabriel Hugh Elkaim 13

CMPE12cGabriel Hugh Elkaim 14

CMPE12cGabriel Hugh Elkaim 15

CMPE12cGabriel Hugh Elkaim 16

CMPE12cGabriel Hugh Elkaim 17

CMPE12cGabriel Hugh Elkaim 18

CMPE12cGabriel Hugh Elkaim 19 What defines an algorithm

CMPE12cGabriel Hugh Elkaim 20

CMPE12cGabriel Hugh Elkaim 21

CMPE12cGabriel Hugh Elkaim 22

CMPE12cGabriel Hugh Elkaim 23 Flow Control Elements The Programming Process: Planning the Solution

CMPE12cGabriel Hugh Elkaim 24 Needed Elements Start/Stop Process Decision Input/Output Connector

CMPE12cGabriel Hugh Elkaim 25 The Programming Process: Planning the Solution Accept series of numbers and display the average

CMPE12cGabriel Hugh Elkaim 26

CMPE12cGabriel Hugh Elkaim 27

CMPE12cGabriel Hugh Elkaim 28

CMPE12cGabriel Hugh Elkaim 29

CMPE12cGabriel Hugh Elkaim 30 The Programming Process: Coding the Program Translate algorithm into a formal programming language Within syntax of the language How to key in the statements? –Text editor –Programming environment –Interactive Development Environment (IDE)

CMPE12cGabriel Hugh Elkaim 31 The Programming Process: Testing the Program Translation – compiler –Translates from source module into object module –Detects syntax errors Link – linkage editor (linker) –Combines object module with libraries to create load module –Finds undefined external references Debugging –Run using data that tests all statements –Logic errors

CMPE12cGabriel Hugh Elkaim 32 The Programming Process: Documenting the Program Performed throughout the development Material generated during each step –Problem definitions –Program plan –Comments within source code –Testing procedures –Narrative –Layouts of input and output –Program listing

CMPE12cGabriel Hugh Elkaim 33 1 st Generation: Machine Level 2 nd Generation: Assembly Level 3 rd Generation: High Level Procedural Level Languages

CMPE12cGabriel Hugh Elkaim 34

CMPE12cGabriel Hugh Elkaim 35

CMPE12cGabriel Hugh Elkaim 36

CMPE12cGabriel Hugh Elkaim 37

CMPE12cGabriel Hugh Elkaim 38 FORTRAN Third Generation Languages

CMPE12cGabriel Hugh Elkaim 39 COBOL Third Generation Languages

CMPE12cGabriel Hugh Elkaim 40 BASIC Third Generation Languages

CMPE12cGabriel Hugh Elkaim 41 Third Generation Languages C++

CMPE12cGabriel Hugh Elkaim 42 More Flow Charting Examples

CMPE12cGabriel Hugh Elkaim 43

CMPE12cGabriel Hugh Elkaim 44