1 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
Computers: Tools for an Information Age
Program Flow Charting How to tackle the beginning stage a program design.
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.
Tools make jobs easier to do -A computer is a tool used by many professions A computer can do many different jobs because they are programmable - Machine.
Introduction 01_intro.ppt
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.
Welcome In The World Of ‘C’.  TEXT BOOK: Programming in ANCI ‘C By: E Balagurusamy. TMH  Reference Books: 1) The ‘C Programming Language By: Kernighan.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
Structured COBOL Programming, Stern & Stern, 9th edition
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.
© 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.
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.
1 Overview of Programming Principles of Computers.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
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 Languages Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
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.
Your Interactive Guide to the Digital World Discovering Computers 2012 Chapter 13 Computer Programs and Programming Languages.
CIS 365: Visual Application Development Introduction to Computers and Programming.
Chapter 1 Introduction 2nd Semester H
Programming Languages
CSCI-235 Micro-Computer Applications
C Programming Hardik H. Maheta.
Chapter 2- Visual Basic Schneider
Programming Concepts and Languages
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.
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.
Presentation transcript:

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

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

3 Programmers Prepare instructions that make up the programPrepare instructions that make up the program Run the instructions to see if they produce the correct resultsRun the instructions to see if they produce the correct results Make correctionsMake corrections Document the programDocument the program Interact withInteract with –Users –Managers –Systems analysts Coordinate with other programmers to build a complete systemCoordinate with other programmers to build a complete system

4 The Programming Process Defining the problemDefining the problem Planning the solutionPlanning the solution Coding the programCoding the program Testing the programTesting the program Documenting the programDocumenting the program

5 The Programming Process: Defining the Problem What is the inputWhat is the input What output do you expectWhat output do you expect How do you get from the input to the outputHow do you get from the input to the output

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

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

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

9

10

11

12 The Indian Numerals

13

14

15

16

17

18

19 What defines an algorithm

20

21

22

23 Flow Control Elements The Programming Process: Planning the Solution

24 Needed Elements Start/Stop Process Decision Input/Output Connector

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

26

27

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

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

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

31 1 st Generation: Machine Level1 st Generation: Machine Level 2 nd Generation: Assembly Level2 nd Generation: Assembly Level 3 rd Generation: High Level3 rd Generation: High Level Procedural Level Languages

32

33

34

35

36 FORTRAN Third Generation Languages

37 COBOL Third Generation Languages

38 BASIC Third Generation Languages

39 Third Generation Languages C++

40 Questions?

41