Download presentation
Presentation is loading. Please wait.
1
1 Program Flow Charting How to tackle the beginning stage a program design
2
2 A Program Set of instructions written in a programming language that tells the computer what to do
3
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
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
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
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
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
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
9
10
10
11
11
12
12 The Indian Numerals
13
13
14
14
15
15
16
16
17
17
18
18
19
19 What defines an algorithm
20
20
21
21
22
22
23
23 Flow Control Elements The Programming Process: Planning the Solution
24
24 Needed Elements Start/Stop Process Decision Input/Output Connector
25
25 The Programming Process: Planning the Solution Accept series of numbers and display the average
26
26
27
27
28
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
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
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
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
32
33
33
34
34
35
35
36
36 FORTRAN Third Generation Languages
37
37 COBOL Third Generation Languages
38
38 BASIC Third Generation Languages
39
39 Third Generation Languages C++
40
40 Questions?
41
41
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.