Unformatted text preview:

Program Flow ChartingA ProgramProgrammersThe Programming ProcessThe Programming Process: Defining the ProblemThe Programming Process: Planning the SolutionSlide 7The Origin of the AlgorithmSlide 9Slide 10Slide 11The Indian NumeralsSlide 13Slide 14Slide 15Slide 16Slide 17Slide 18What defines an algorithmSlide 20Slide 21Slide 22Slide 23Needed ElementsSlide 25Slide 26Slide 27The Programming Process: Coding the ProgramThe Programming Process: Testing the ProgramThe Programming Process: Documenting the ProgramProcedural Level LanguagesSlide 32Slide 33Slide 34Slide 35Slide 36Slide 37Slide 38Third Generation LanguagesQuestions?Slide 411Program Flow ChartingProgram Flow ChartingHow to tackle the beginning How to tackle the beginning stage a program designstage a program design2A ProgramA ProgramSet of instructions written in a Set of instructions written in a programming language that tells programming language that tells the computer what to dothe computer what to do3ProgrammersProgrammers•Prepare instructions that make up the programPrepare instructions that make up the program•Run the instructions to see if they produce the correct Run the instructions to see if they produce the correct resultsresults•Make correctionsMake corrections•Document the programDocument the program•Interact withInteract with–Users–Managers–Systems analysts•Coordinate with other programmers to build a complete Coordinate with other programmers to build a complete systemsystem4The Programming ProcessThe 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 program5The Programming Process: The Programming Process: Defining the ProblemDefining 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 How do you get from the input to the outputto the output6The Programming The Programming Process: Process: Planning the Planning the SolutionSolution•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 syntax7•Desk-checkingDesk-checking–Personal code design walk through•Peer ReviewsPeer Reviews–“Code walk through”/structured walk throughThe Programming Process: The Programming Process: Planning the Planning the SolutionSolution8The Origin of the The Origin of the AlgorithmAlgorithm•From “The From “The Cartoon Cartoon Guide to Guide to Computer Computer Science,” Science,” by Larry by Larry GonickGonick9101112The Indian NumeralsThe Indian Numerals13141516171819What defines an algorithmWhat defines an algorithm20212223Flow ControlElementsThe Programming Process: The Programming Process: Planning the Planning the SolutionSolution24Needed ElementsNeeded ElementsStart/StopProcessDecisionInput/OutputConnector25The Programming Process: The Programming Process: Planning the Planning the SolutionSolutionAccept series of numbers and display the average262728The Programming The Programming Process: Process: Coding the ProgramCoding the Program•Translate algorithm into a formal Translate algorithm into a formal programming languageprogramming 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)29The Programming The Programming Process: Process: Testing the ProgramTesting 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 errors30The Programming Process: The Programming Process: Documenting the ProgramDocumenting the Program•Performed throughout the Performed throughout the developmentdevelopment•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 listing31•11stst Generation: Machine Level Generation: Machine Level•22ndnd Generation: Assembly Level Generation: Assembly Level•33rdrd Generation: High Level Generation: High Level Procedural Level Procedural Level LanguagesLanguages3233343536FORTRANThird Generation LanguagesThird Generation Languages37COBOLThird Generation LanguagesThird Generation Languages38BASICThird Generation LanguagesThird Generation Languages39Third Generation LanguagesThird Generation


View Full Document

UCSC CMPE 012 - Program Flow Charting

Download Program Flow Charting
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Program Flow Charting and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Program Flow Charting 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?