Skip to:Content
|
Bottom
Cover image for Logic and structured design for computer programmers
Title:
Logic and structured design for computer programmers
Personal Author:
Edition:
3rd ed.
Publication Information:
Australia : Brooks/Cole, 2001
ISBN:
9780534373863

Available:*

Library
Item Barcode
Call Number
Material Type
Item Category 1
Status
Searching...
30000004761643 QA76.6 R62 2001 f Open Access Book Book
Searching...
Searching...
30000004846121 QA76.6 R62 2001 Open Access Book Book
Searching...
Searching...
30000004825737 QA76.6 R62 2001 Open Access Book Book
Searching...

On Order

Summary

Summary

LOGIC AND STRUCTURED DESIGN is an introduction to the logic of data processing. It is intended for those who plan, but have not yet begun, to study programming, particularly those with little background in mathematics or logic. The author avoids reference to specific programming languages, isolating questions of logic from questions of syntax. This approach enables readers to concentrate on the logic of problems. The book walks readers through logical problems common to a variety of programming languages and provides the background in logic that many programming texts and courses assume.


Table of Contents

Chapter 1 Computers and Flowchartsp. 1
1.1 Computers and Logicp. 1
1.2 Algorithmsp. 2
1.3 Flowchartsp. 2
Exercises 1.1-1.3p. 8
1.4 Computers, Memory, and Input/Outputp. 9
Computer Memoryp. 10
Input/Outputp. 13
1.5 Routine Components in Programsp. 16
Loopsp. 17
Countersp. 18
Accumulators (Totals and Subtotals)p. 20
Indicators (Switches or Flags)p. 22
Exercises 1.4-1.5p. 24
1.6 Universal Requirements for Flowchartsp. 25
1.7 Error Messagesp. 26
1.8 Zero, Positive, and Negativep. 29
1.9 Program Designp. 30
Exercises 1.6-1.9p. 32
1.10 System Flowchartsp. 33
Exercises 1.10p. 36
Review Questionsp. 36
Chapter 2 Structured Flowchartsp. 38
2.1 Requirements for Structured Flowchartsp. 38
Structured Loops and the EOF Decisionp. 41
EOF Pretestp. 42
Combining the Structuresp. 43
2.2 An "Unofficial" Explanation of Structurep. 45
Exercises 2.1-2.2p. 48
2.3 Examples of Structured Flowchartsp. 50
2.4 Indicators in Loop Exit Decisionsp. 51
2.5 Modular Flowchartsp. 56
Exercises 2.3-2.5p. 59
2.6 Structured Flowcharts for Printing Tablesp. 63
Exercises 2.6p. 72
Review Questionsp. 73
Chapter 3 Control Break Programsp. 74
3.1 Single-Level Control Break Programsp. 75
Exercises 3.1p. 80
3.2 Two-Level Control Break Programsp. 80
Exercises 3.2p. 86
Review Questionsp. 88
Chapter 4 The Logic of Sets, Ip. 89
4.1 Definition of Setp. 89
4.2 The Universal Set and the Empty Setp. 90
4.3 Operations on Setsp. 90
4.4 Venn Diagramsp. 92
Exercises 4.1-4.4p. 95
4.5 Venn Diagrams for Three Setsp. 96
4.6 Translation from Natural Language to Set Theoryp. 101
Exercises 4.5-4.6p. 102
4.7 Extract Programs and Set Theoryp. 104
Simplification with Venn Diagramsp. 112
Exercises 4.7p. 114
4.8 Flowcharts Combining Sets, Counters, and Accumulatorsp. 116
Exercises 4.8p. 122
Review Questionsp. 122
Chapter 5 The Logic of Sets, IIp. 124
5.1 Boolean (Set-Theory) Propertiesp. 124
Commutationp. 124
Associationp. 125
Distributionp. 126
De Morgan's Lawp. 127
Absorptionp. 128
Other Propertiesp. 128
Simplification with Boolean Propertiesp. 129
Exercises 5.1p. 130
5.2 Simplified Flowchartsp. 130
Exercises 5.2p. 132
5.3 Statements in Set Theoryp. 133
5.4 Set-Theory Statements and Flowchartsp. 134
Exercises 5.3-5.4p. 140
5.5 Symbolizing Natural-Language Statementsp. 141
5.6 Flowcharts and Natural-Language Statementsp. 143
Exercises 5.5-5.6p. 146
Review Questionsp. 147
Chapter 6 Truth Functional Logic and Decision Tablesp. 148
6.1 Truth Functional Sentence Connectivesp. 148
Negationp. 149
Exercises 6.1p. 150
6.2 Symbolizationp. 150
Examples of Symbolization and Truth Functional Analysisp. 151
Inclusive and Exclusive Disjunctionp. 151
Examples of Symbolization with Truth Functional Analysisp. 152
6.3 Alternative Notation for Disjunction and Conjunctionp. 153
Exercises 6.2-6.3p. 153
6.4 Equivalencep. 154
6.5 Tautologies and Contradictionsp. 156
Exercises 6.4-6.5p. 157
6.6 Conditional Statementsp. 158
Examples of Conditional Statements, Symbolizations, and Truth Functional Analysisp. 158
Exercises 6.6p. 160
6.7 Simplification by Truth Functional Analysisp. 161
Examples of Simplification by Truth Functional Analysisp. 168
A World of Cautionp. 170
Exercises 6.7p. 170
6.8 The Conditional and Flowchartsp. 171
Exercises 6.8p. 175
6.9 Equivalence Rulesp. 176
Exercises 6.9p. 180
6.10 Decision Tablesp. 182
Maintainability versus Program Efficiencyp. 186
6.11 Decision Table Examplesp. 186
Exercises 6.10-6.11p. 190
Review Questionsp. 191
Chapter 7 Warnier Diagrams for Program Designp. 193
7.1 Universals, Executables, and Structured Loopsp. 194
Structured Programmingp. 194
Exercises 7.1p. 200
7.2 If-Then-Else and Casep. 203
Nested If-Then-Else Decisionsp. 205
Do-While EOF and Do-Until EOFp. 206
Exercises 7.2p. 208
7.3 Example Programs with Warnier Diagramsp. 211
Exercises 7.3p. 216
7.4 Program Design Using Warnier Diagramsp. 217
Exercises 7.4p. 220
7.5 Warnier Diagrams as Data Structuresp. 221
Input Structuresp. 221
Output Structuresp. 222
Printer Spacing Chartsp. 224
Exercises 7.5p. 228
7.6 Report Programs from Output Structuresp. 230
Exercises 7.6p. 235
Review Questionsp. 236
Chapter 8 Pseudocode and Nassi-Shneiderman Diagramsp. 238
8.1 Pseudocodep. 238
Sequencep. 239
Loopsp. 239
If-Then-Elsep. 240
Nested If-Then-Elsesp. 241
Modular Pseudocodep. 242
Hierarchy Chartsp. 244
Examples of Pseudocodep. 245
Exercises 8.1p. 250
8.2 Nassi-Shneiderman Diagramsp. 255
Sequencep. 256
Universalsp. 256
If-Then-Elsep. 257
Nested Decisionsp. 258
Casep. 259
Loopsp. 260
Examples of Nassi-Shneiderman Diagramsp. 261
Exercises 8.2p. 268
Review Questionsp. 272
Chapter 9 Arrays and Array Processingp. 273
9.1 Fundamental Array Structuresp. 273
9.2 Dimension Statements and Countersp. 275
9.3 Array Location Names Used as Variablesp. 276
Exercises 9.1-9.3p. 279
9.4 Examples of Array Processingp. 282
Exercises 9.4p. 287
9.5 Data-Directed Processingp. 288
Exercises 9.5p. 292
9.6 Multidimensional Arraysp. 293
Processing Two-Dimensional Arraysp. 293
9.7 Examples of Programs with Two-Dimensional Arraysp. 296
Sales Report Examplesp. 299
Exercises 9.6-9.7p. 308
9.8 Exchangep. 308
9.9 Sortsp. 309
Bubble Sortp. 310
Binary Sortp. 311
9.10 Miscellaneous Array Manipulationsp. 315
Finding the Largest (Smallest) Itemp. 315
Searchp. 315
Sequential Searchp. 316
Binary Searchp. 318
Coordinated Arraysp. 318
Exercises 9.8-9.10p. 321
Review Questionsp. 322
Chapter 10 Edit and File-Processing Programsp. 324
10.1 Edit Programsp. 324
Exercises 10.1p. 330
10.2 Sequential File Processingp. 331
Record Keys for Sequential Filesp. 331
Sequential File Creationp. 331
10.3 Extract Programs (Sequential Files)p. 332
Extract Programs for Files with Unique Keysp. 332
Extract Programs for Files with Nonunique Keysp. 336
10.4 Merge Program (Sequential Files)p. 336
10.5 Sequential Files Updatep. 339
10.6 Sequential File Maintenancep. 341
Exercises 10.2-10.6p. 346
10.7 Random File Processingp. 346
10.8 Extract Programs for Indexed Filesp. 347
10.9 Random File Updatep. 349
10.10 Random File Maintenancep. 350
Direct File Processing Compared with Indexed File Processingp. 353
Exercises 10.7-10.10p. 353
Review Questionsp. 354
Chapter 11 Interactive Programsp. 355
11.1 Single-Line Entry versus Full-Screen Entryp. 355
11.2 Single-Line Entry Programsp. 356
User Directionp. 357
Function Keysp. 361
User-Directed Storagep. 362
Screen Editsp. 364
Exercises 11.1-11.2p. 365
11.3 Single-Line Entry and File Processingp. 365
Interactive File Accessp. 367
Exercises 11.3p. 370
11.4 Full-Screen Entry Programsp. 370
Inquiry-Only Programp. 372
Inquiry-Only (Two Files)p. 374
File Updatep. 376
11.5 Interactive File Maintenance Programp. 378
11.6 Interactive Posting Programp. 381
Exercises 11.4-11.6p. 382
Review Questionsp. 383
Appendix A Documentationp. 385
Appendix B Control Break Programs without Compound Conditionsp. 390
Answers to Selected Exercisesp. 393
Indexp. 453
Go to:Top of Page