Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Program Flow Charting How to tackle the beginning stage a program design."— Presentation transcript:

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

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

3 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

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

5 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

6 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

7 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

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

9 CMPE12cGabriel Hugh Elkaim 9

10 CMPE12cGabriel Hugh Elkaim 10

11 CMPE12cGabriel Hugh Elkaim 11

12 CMPE12cGabriel Hugh Elkaim 12 The Indian Numerals

13 CMPE12cGabriel Hugh Elkaim 13

14 CMPE12cGabriel Hugh Elkaim 14

15 CMPE12cGabriel Hugh Elkaim 15

16 CMPE12cGabriel Hugh Elkaim 16

17 CMPE12cGabriel Hugh Elkaim 17

18 CMPE12cGabriel Hugh Elkaim 18

19 CMPE12cGabriel Hugh Elkaim 19 What defines an algorithm

20 CMPE12cGabriel Hugh Elkaim 20

21 CMPE12cGabriel Hugh Elkaim 21

22 CMPE12cGabriel Hugh Elkaim 22

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

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

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

26 CMPE12cGabriel Hugh Elkaim 26

27 CMPE12cGabriel Hugh Elkaim 27

28 CMPE12cGabriel Hugh Elkaim 28

29 CMPE12cGabriel Hugh Elkaim 29

30 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)

31 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

32 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

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

34 CMPE12cGabriel Hugh Elkaim 34

35 CMPE12cGabriel Hugh Elkaim 35

36 CMPE12cGabriel Hugh Elkaim 36

37 CMPE12cGabriel Hugh Elkaim 37

38 CMPE12cGabriel Hugh Elkaim 38 FORTRAN Third Generation Languages

39 CMPE12cGabriel Hugh Elkaim 39 COBOL Third Generation Languages

40 CMPE12cGabriel Hugh Elkaim 40 BASIC Third Generation Languages

41 CMPE12cGabriel Hugh Elkaim 41 Third Generation Languages C++

42 CMPE12cGabriel Hugh Elkaim 42 More Flow Charting Examples

43 CMPE12cGabriel Hugh Elkaim 43

44 CMPE12cGabriel Hugh Elkaim 44


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

Similar presentations


Ads by Google