VI Update

USVI Public Records

A VI Update Project · Brian LoudenThe territory’s public record — kept public.

DAT 115 Chp 3

Collection
University Records
Sub-shelf
manta.uvi.edu (Internet Archive recovery)
Kind
Government Report
Pages
1
Text
Native Text

P&‹G DAT 115 Chp 3 Charles V. Balch, Feb. 2 Do examples on 78 and 79. Straight line or sequential programming Logic goes from start to stop(s) with few if any subroutines and as many unconditional branches (GOTO) as desired. This makes the logic very hard to follow on long programs. Average programmer produced 10 lines of debugged code a day! Structured Programming Advantages Provides standard methods of solving problems. Structured programs are GOTO less. They are modular. Easy to test and debug. (Modules can be individually checked). Allow multiple programmers. Routines (modules) can be shared between programs. Structured programs can reduce thrashing or memory waste. Decreased programming time Disadvantages Code can take longer to execute (as a result of higher memory overhead) In order to avoid GOTOs many nested if-thens care used Rules Only one entrance and exit from a structure (selection w/i structure OK) No GOTOs; In Modular programming GOTOs are allowed w/i subroutines There can be only one stop. …

Download the original document · Plain text (TXT) · Browse the archive · How this archive works

Original source: https://web.archive.org/web/19961207064505id_/http://manta.uvi.edu:80/cerit/DAT/DAT115/chp3.doc

SHA-256 d075fc313797cf137cba7265dc20d4d4e33e5338a88e6722a4a6b1f2370dbdbb

Re-using this document

Our description, tagging, arrangement, extracted text and machine transcripts are released under CC0 1.0. We assert nothing about the document itself.

Archive identifier LF-d075fc313797

Document text

P&‹G DAT 115 Chp 3 Charles V. Balch, Feb. 2 Do examples on 78 and 79. Straight line or sequential programming Logic goes from start to stop(s) with few if any subroutines and as many unconditional branches (GOTO) as desired. This makes the logic very hard to follow on long programs. Average programmer produced 10 lines of debugged code a day! Structured Programming Advantages Provides standard methods of solving problems. Structured programs are GOTO less. They are modular. Easy to test and debug. (Modules can be individually checked). Allow multiple programmers. Routines (modules) can be shared between programs. Structured programs can reduce thrashing or memory waste. Decreased programming time Disadvantages Code can take longer to execute (as a result of higher memory overhead) In order to avoid GOTOs many nested if-thens care used Rules Only one entrance and exit from a structure (selection w/i structure OK) No GOTOs; In Modular programming GOTOs are allowed w/i subroutines There can be only one stop. (this should be some sort of routine) Only three structures: sequence [90], decision (selection/case) [91-93] nested is a special case [94], note problems [95] top M>20, bottom test F>19 only problem - case allowed (petty theft, larceny, grand larceny, assault, murder) (visitor) Structures can be nested (i.e. one structure can be w/i another). looping (iteration) Do While (exit at beginning) vs. DO Until (exit at end) Note counters value Counter controlled loops Pseudocode We will not use this Decision tables [127] another way of showing outcomes Good Code Note “EOF” [96] and “DONE” [97] indicators Read and Error routines Housekeeping (initialization) procedures set things up as they should be. Program or module level Termination (end-of-program) procedures are the same for exit (close files) In Class Tasks: None Handout: None Assignment: Problems 9-12 on page 143 C:\!DOCS\MSOFFICE\WINWORD\TEMPLATE\NORMAL.DOT DAT 115 Chp Notes 3 Charles V. Balch Charles V. Balch DAT 115 Chp 3 Charles V. Balch, Feb. 2 Do examples on 78 and 79. Straight line or sequential programming Logic goes from start to stop(s) with few if any subroutines and as many unconditional branches (GOTO) as desired. This makes the logic very hard to follow on long programs. Average programmer produced 10 lines of debugged code a day! Structured Programming Advantages Provides standard methods of solving problems. Structured programs are GOTO less. They are modular. Easy to test and debug. (Modules can be individually checked). Allow multiple programmers. Routines (modules) can be shared between programs. Structured programs can reduce thrashing or memory waste. Decreased programming time Disadvantages Code can take longer to execute (as a result of higher memory overhead) In order to avoid GOTOs many nested if-thens care used Rules Only one entrance and exit from a structure (selection w/i structure OK) No GOTOs; In Modular programming GOTOs are allowed w/i subroutines There can be only one stop. (this should be some sort of routine) Only three structures: sequence [90], decision (selection/case) [91-93] nested is a special case [94], note problems [95] top M>20, bottom test F>19 only problem - case allowed (petty theft, larceny, grand larceny, assault, murder) (visitor) Structures can be nested (i.e. one structure can be w/i another). looping (iteration) Do While (exit at beginning) vs. DO Until (exit at end) Note counters value Counter controlled loops Pseudocode We will not use this Decision tables [127] another way of showing outcomes Good Code Note “EOF” [96] and “DONE” [97] indicators Read and Error routines Housekeeping (initialization) procedures set things up as they should be. Program or module level Termination (end-of-program) procedures are the same for exit (close files) In Class Tasks: None Handout: None Assignment: Problems 9-12 on page 143 j j j j j hÌ Normal Heading 1 Heading 2 Heading 3 Heading 4 Heading 5 Heading 6 Default Paragraph Font Header Footnote Text List Table Footnote Reference Bibliography Example Quote Question Answer Heading UVZc0 Telecom_Out Telecom_In Page_Heading Title_Heading Charles V. Balch C:\!DOCS\DAT115\CLASNOTE.DOC Charles V. Balch C:\!DOCS\DAT115\CLASS1.DOC Charles V. Balch C:\!DOCS\DAT115\CLASS1.DOC Charles V. Balch C:\!DOCS\DAT115\CLASS2.DOC Charles V. Balch C:\!DOCS\DAT115\CLASS2.DOC Charles V. Balch C:\!DOCS\DAT115\CLASS2.DOC Charles V. Balch C:\!DOCS\DAT115\CHP3.DOC Charles V. Balch C:\!DOCS\DAT115\CHP3.DOC Charles V. Balch C:\!DOCS\DAT115\CHP3.DOC Charles V. Balch C:\!DOCS\DAT115\CHP3.DOCÿ@PostScript Printer LPT2: pscript Apple LaserWriter Plus Apple LaserWriter Plus Symbol Palatino Courier Courier New DAT 115 Chp Notes 3 Charles V. Balch Charles V. Balch