MARC details
| 000 -LEADER |
| fixed length control field |
14478cam a22003134i 4500 |
| 001 - CONTROL NUMBER |
| control field |
13493761 |
| 005 - DATE AND TIME OF LATEST TRANSACTION |
| control field |
20210125143417.0 |
| 008 - FIXED-LENGTH DATA ELEMENTS--GENERAL INFORMATION |
| fixed length control field |
040218s2005 maua 001 0 eng |
| 020 ## - INTERNATIONAL STANDARD BOOK NUMBER |
| International Standard Book Number |
0763707988 (pbk.) |
| 040 ## - CATALOGING SOURCE |
| Original cataloging agency |
DLC |
| Transcribing agency |
DLC |
| Modifying agency |
DLC |
| -- |
DLC |
| Description conventions |
rda |
| 082 00 - DEWEY DECIMAL CLASSIFICATION NUMBER |
| Classification number |
005.133 |
| Edition number |
22 |
| Item number |
D.N.P |
| 100 1# - MAIN ENTRY--PERSONAL NAME |
| Personal name |
Dale, Nell B. |
| 9 (RLIN) |
18378 |
| 245 10 - TITLE STATEMENT |
| Title |
Programming and problem solving with C++ / |
| Statement of responsibility, etc |
Nell Dale, Chip Weems. |
| 250 ## - EDITION STATEMENT |
| Edition statement |
Fourth edition. |
| 260 ## - PUBLICATION, DISTRIBUTION, ETC. (IMPRINT) |
| Place of publication, distribution, etc |
Boston : |
| Name of publisher, distributor, etc |
Jones and Bartlett Publishers, |
| Date of publication, distribution, etc |
2005. |
| 300 ## - PHYSICAL DESCRIPTION |
| Extent |
xxvii, 1119 : |
| Other physical details |
ill. ; |
| Dimensions |
24 cm. + |
| Accompanying material |
1 computer disc (4 3/4 inch) |
| 336 ## - CONTENT TYPE |
| Source |
rdacontent |
| Content type term |
text |
| 337 ## - MEDIA TYPE |
| Source |
rdamedia |
| Media type term |
unmediated |
| 338 ## - CARRIER TYPE |
| Source |
rdacarrier |
| Carrier type term |
volume |
| 500 ## - GENERAL NOTE |
| General note |
Includes index. |
| 505 0# - FORMATTED CONTENTS NOTE |
| Formatted contents note |
Preface v<br/>1 Overview of Programming and Problem Solving 1<br/>1.1 Overview of Programming 2<br/>What Is Programming? 2<br/>How Do We Write a Program? 3<br/>1.2 What Is a Programming Language? 9<br/>1.3 What Is a Computer? 15<br/>1.4 Ethics and Responsibilities in the Computing Profession 24<br/>Software Piracy 24<br/>Privacy of Data 25<br/>Use of Computer Resources 26<br/>Software Engineering 27<br/>1.5 Problem-Solving Techniques 27<br/>Ask Questions 28<br/>Look for Things That Are Familiar 28<br/>Solve by Analogy 28<br/>Means-Ends Analysis 29<br/>Divide and Conquer 30<br/>DalePhatToc 11/4/01 2:34 PM Page xiii<br/>The Building-Block Approach 30<br/>Merging Solutions 31<br/>Mental Blocks: The Fear of Starting 32<br/>Algorithmic Problem Solving 33<br/>Problem-Solving Case Study: An Algorithm for an Employee<br/>Paycheck 33<br/>Summary 37<br/>Quick Check 38<br/>Answers 39<br/>Exam Preparation Exercises 39<br/>Programming Warm-Up Exercises 41<br/>Case Study Follow-Up 41<br/>2 C++ Syntax and Semantics, and the Program Development<br/>Process 43<br/>2.1 The Elements of C++ Programs 44<br/>C++ Program Structure 44<br/>Syntax and Semantics 46<br/>Syntax Templates 49<br/>Naming Program Elements: Identifiers 52<br/>Data and Data Types 53<br/>Naming Elements: Declarations 56<br/>Taking Action: Executable Statements 61<br/>Beyond Minimalism: Adding Comments to a Program 66<br/>2.2 Program Construction 67<br/>Blocks (Compound Statements) 69<br/>The C++ Preprocessor 71<br/>An Introduction to Namespaces 73<br/>2.3 More About Output 74<br/>Creating Blank Lines 74<br/>Inserting Blanks Within a Line 75<br/>2.4 Program Entry, Correction, and Execution 76<br/>Entering a Program 76<br/>Compiling and Running a Program 77<br/>Finishing Up 78<br/>Problem-Solving Case Study: Contest Letter 79<br/>xiv | Contents<br/>DalePhatToc 11/4/01 2:34 PM Page xiv<br/>Testing and Debugging 83<br/>Summary 84<br/>Quick Check 85<br/>Answers 87<br/>Exam Preparation Exercises 88<br/>Programming Warm-Up Exercises 90<br/>Programming Problems 92<br/>Case Study Follow-Up 94<br/>3 Numeric Types, Expressions, and Output 95<br/>3.1 Overview of C++ Data Types 96<br/>3.2 Numeric Data Types 97<br/>Integral Types 97<br/>Floating-Point Types 98<br/>3.3 Declarations for Numeric Types 99<br/>Named Constant Declarations 99<br/>Variable Declarations 100<br/>3.4 Simple Arithmetic Expressions 101<br/>Arithmetic Operators 101<br/>Increment and Decrement Operators 104<br/>3.5 Compound Arithmetic Expressions 105<br/>Precedence Rules 105<br/>Type Coercion and Type Casting 106<br/>3.6 Function Calls and Library Functions 111<br/>Value-Returning Functions 111<br/>Library Functions 113<br/>Void Functions 114<br/>3.7 Formatting the Output 115<br/>Integers and Strings 115<br/>Floating-Point Numbers 118<br/>3.8 Additional string Operations 122<br/>The length and size Functions 122<br/>The find Function 124<br/>The substr Function 125<br/>Problem-Solving Case Study: Painting Traffic Cones 128<br/>Contents | xv<br/>DalePhatToc 11/4/01 2:34 PM Page xv<br/>Testing and Debugging 132<br/>Summary 133<br/>Quick Check 133<br/>Answers 135<br/>Exam Preparation Exercises 136<br/>Programming Warm-Up Exercises 140<br/>Programming Problems 143<br/>Case Study Follow-Up 145<br/>4 Program Input and the Software Design Process 147<br/>4.1 Getting Data into Programs 148<br/>Input Streams and the Extraction Operator (>>) 149<br/>The Reading Marker and the Newline Character 152<br/>Reading Character Data with the get Function 153<br/>Skipping Characters with the ignore Function 156<br/>Reading String Data 157<br/>4.2 Interactive Input/Output 158<br/>4.3 Noninteractive Input/Output 160<br/>4.4 File Input and Output 161<br/>Files 161<br/>Using Files 162<br/>An Example Program Using Files 165<br/>Run-Time Input of File Names 167<br/>4.5 Input Failure 168<br/>4.6 Software Design Methodologies 170<br/>4.7 What Are Objects? 171<br/>4.8 Object-Oriented Design 173<br/>4.9 Functional Decomposition 174<br/>Modules 176<br/>Implementing the Design 177<br/>A Perspective on Design 181<br/>Problem-Solving Case Study: Stretching a Canvas 183<br/>Testing and Debugging 189<br/>Testing and Debugging Hints 191<br/>xvi | Contents<br/>DalePhatToc 11/4/01 2:34 PM Page xvi<br/>Summary 191<br/>Quick Check 192<br/>Answers 193<br/>Exam Preparation Exercises 193<br/>Programming Warm-Up Exercises 196<br/>Programming Problems 198<br/>Case Study Follow-Up 199<br/>5 Conditions, Logical Expressions, and Selection<br/>Control Structures 201<br/>5.1 Flow of Control 202<br/>Selection 203<br/>5.2 Conditions and Logical Expressions 204<br/>The bool Data Type 204<br/>Logical Expressions 205<br/>Precedence of Operators 214<br/>Relational Operators with Floating-Point Types 216<br/>5.3 The If Statement 217<br/>The If-Then-Else Form 217<br/>Blocks (Compound Statements) 220<br/>The If-Then Form 222<br/>A Common Mistake 224<br/>5.4 Nested If Statements 224<br/>The Dangling else 228<br/>5.5 Testing the State of an I/O Stream 229<br/>Problem-Solving Case Study: Warning Notices 231<br/>Testing and Debugging 236<br/>Testing in the Problem-Solving Phase: The Algorithm<br/>Walk-Through 236<br/>Testing in the Implementation Phase 239<br/>The Test Plan 244<br/>Tests Performed Automatically During Compilation and Execution<br/>246<br/>Testing and Debugging Hints 247<br/>Contents | xvii<br/>DalePhatToc 11/4/01 2:34 PM Page xvii<br/>Summary 249<br/>Quick Check 249<br/>Answers 250<br/>Exam Preparation Exercises 250<br/>Programming Warm-Up Exercises 254<br/>Programming Problems 256<br/>Case Study Follow-Up 259<br/>6 Looping 261<br/>6.1 The While Statement 262<br/>6.2 Phases of Loop Execution 264<br/>6.3 Loops Using the While Statement 265<br/>Count-Controlled Loops 265<br/>Event-Controlled Loops 267<br/>Looping Subtasks 273<br/>6.4 How to Design Loops 276<br/>Designing the Flow of Control 277<br/>Designing the Process Within the Loop 278<br/>The Loop Exit 279<br/>6.5 Nested Logic 280<br/>Designing Nested Loops 284 |
| 505 0# - FORMATTED CONTENTS NOTE |
| Formatted contents note |
Problem-Solving Case Study: Average Income by Gender 291<br/>Testing and Debugging 297<br/>Loop-Testing Strategy 297<br/>Test Plans Involving Loops 297<br/>Testing and Debugging Hints 299<br/>Summary 300<br/>Quick Check 301<br/>Answers 301<br/>Exam Preparation Exercises 302<br/>Programming Warm-Up Exercises 305<br/>Programming Problems 305<br/>Case Study Follow-Up 308<br/>xviii | Contents<br/>DalePhatToc 11/4/01 2:34 PM Page xviii<br/>7 Functions 309<br/>7.1 Functional Decomposition with Void Functions 310<br/>When to Use Functions 311<br/>Writing Modules as Void Functions 311<br/>7.2 An Overview of User-Defined Functions 316<br/>Flow of Control in Function Calls 316<br/>Function Parameters 316<br/>7.3 Syntax and Semantics of Void Functions 319<br/>Function Call (Invocation) 319<br/>Function Declarations and Definitions 320<br/>Local Variables 322<br/>The Return Statement 324<br/>Header Files 325<br/>7.4 Parameters 326<br/>Value Parameters 327<br/>Reference Parameters 328<br/>An Analogy 331<br/>Matching Arguments with Parameters 332<br/>7.5 Designing Functions 335<br/>Writing Assertions as Program Comments 337<br/>Documenting the Direction of Data Flow 339<br/>Problem-Solving Case Study: Comparison of<br/>Furniture-Store Sales 343<br/>Testing and Debugging 352<br/>The assert Library Function 353<br/>Testing and Debugging Hints 354<br/>Summary 355<br/>Quick Check 356<br/>Answers 357<br/>Exam Preparation Exercises 357<br/>Programming Warm-Up Exercises 363<br/>Programming Problems 365<br/>Case Study Follow-Up 369<br/>Contents | xix<br/>DalePhatToc 11/4/01 2:34 PM Page xix<br/>8 Scope, Lifetime, and More on Functions 371<br/>8.1 Scope of Identifiers 372<br/>Scope Rules 374<br/>Variable Declarations and Definitions 378<br/>Namespaces 379<br/>8.2 Lifetime of a Variable 382<br/>Initializations in Declarations 382<br/>8.3 Interface Design 384<br/>Side Effects 384<br/>Global Constants 387<br/>8.4 Value-Returning Functions 389<br/>Boolean Functions 394<br/>Interface Design and Side Effects 398<br/>When to Use Value-Returning Functions 399<br/>Problem-Solving Case Study: Reformat Dates 401<br/>Problem-Solving Case Study: Starship Weight<br/>and Balance 412<br/>Testing and Debugging 423<br/>Stubs and Drivers 423<br/>Testing and Debugging Hints 425<br/>Summary 426<br/>Quick Check 427<br/>Answers 428<br/>Exam Preparation Exercises 428<br/>Programming Warm-Up Exercises 432<br/>Programming Problems 433<br/>Case Study Follow-Up 435<br/>9 Additional Control Structures 437<br/>9.1 The Switch Statement 438<br/>9.2 The Do-While Statement 443<br/>9.3 The For Statement 446<br/>9.4 The Break and Continue Statements 450<br/>9.5 Guidelines for Choosing a Looping Statement 453<br/>Problem-Solving Case Study: Monthly Rainfall Averages 454<br/>xx | Contents<br/>DalePhatToc 11/4/01 2:34 PM Page xx<br/>Testing and Debugging 459<br/>Testing and Debugging Hints 460<br/>Summary 460<br/>Quick Check 461<br/>Answers 461<br/>Exam Preparation Exercises 462<br/>Programming Warm-Up Exercises 463<br/>Programming Problems 465<br/>Case Study Follow-Up 467 |
| 505 0# - FORMATTED CONTENTS NOTE |
| Formatted contents note |
Problem-Solving Case Study: Average Income by Gender 291<br/>Testing and Debugging 297<br/>Loop-Testing Strategy 297<br/>Test Plans Involving Loops 297<br/>Testing and Debugging Hints 299<br/>Summary 300<br/>Quick Check 301<br/>Answers 301<br/>Exam Preparation Exercises 302<br/>Programming Warm-Up Exercises 305<br/>Programming Problems 305<br/>Case Study Follow-Up 308<br/>xviii | Contents<br/>DalePhatToc 11/4/01 2:34 PM Page xviii<br/>7 Functions 309<br/>7.1 Functional Decomposition with Void Functions 310<br/>When to Use Functions 311<br/>Writing Modules as Void Functions 311<br/>7.2 An Overview of User-Defined Functions 316<br/>Flow of Control in Function Calls 316<br/>Function Parameters 316<br/>7.3 Syntax and Semantics of Void Functions 319<br/>Function Call (Invocation) 319<br/>Function Declarations and Definitions 320<br/>Local Variables 322<br/>The Return Statement 324<br/>Header Files 325<br/>7.4 Parameters 326<br/>Value Parameters 327<br/>Reference Parameters 328<br/>An Analogy 331<br/>Matching Arguments with Parameters 332<br/>7.5 Designing Functions 335<br/>Writing Assertions as Program Comments 337<br/>Documenting the Direction of Data Flow 339<br/>Problem-Solving Case Study: Comparison of<br/>Furniture-Store Sales 343<br/>Testing and Debugging 352<br/>The assert Library Function 353<br/>Testing and Debugging Hints 354<br/>Summary 355<br/>Quick Check 356<br/>Answers 357<br/>Exam Preparation Exercises 357<br/>Programming Warm-Up Exercises 363<br/>Programming Problems 365<br/>Case Study Follow-Up 369<br/>Contents | xix<br/>DalePhatToc 11/4/01 2:34 PM Page xix<br/>8 Scope, Lifetime, and More on Functions 371<br/>8.1 Scope of Identifiers 372<br/>Scope Rules 374<br/>Variable Declarations and Definitions 378<br/>Namespaces 379<br/>8.2 Lifetime of a Variable 382<br/>Initializations in Declarations 382<br/>8.3 Interface Design 384<br/>Side Effects 384<br/>Global Constants 387<br/>8.4 Value-Returning Functions 389<br/>Boolean Functions 394<br/>Interface Design and Side Effects 398<br/>When to Use Value-Returning Functions 399<br/>Problem-Solving Case Study: Reformat Dates 401<br/>Problem-Solving Case Study: Starship Weight<br/>and Balance 412<br/>Testing and Debugging 423<br/>Stubs and Drivers 423<br/>Testing and Debugging Hints 425<br/>Summary 426<br/>Quick Check 427<br/>Answers 428<br/>Exam Preparation Exercises 428<br/>Programming Warm-Up Exercises 432<br/>Programming Problems 433<br/>Case Study Follow-Up 435<br/>9 Additional Control Structures 437<br/>9.1 The Switch Statement 438<br/>9.2 The Do-While Statement 443<br/>9.3 The For Statement 446<br/>9.4 The Break and Continue Statements 450<br/>9.5 Guidelines for Choosing a Looping Statement 453<br/>Problem-Solving Case Study: Monthly Rainfall Averages 454<br/>xx | Contents<br/>DalePhatToc 11/4/01 2:34 PM Page xx<br/>Testing and Debugging 459<br/>Testing and Debugging Hints 460<br/>Summary 460<br/>Quick Check 461<br/>Answers 461<br/>Exam Preparation Exercises 462<br/>Programming Warm-Up Exercises 463<br/>Programming Problems 465<br/>Case Study Follow-Up 467 |
| 505 0# - FORMATTED CONTENTS NOTE |
| Formatted contents note |
10 Simple Data Types: Built-In and User-Defined 469<br/>10.1 Built-In Simple Types 470<br/>Integral Types 472<br/>Floating-Point Types 475<br/>10.2 Additional C++ Operators 476<br/>Assignment Operators and Assignment Expressions 478<br/>Increment and Decrement Operators 479<br/>Bitwise Operators 480<br/>The Cast Operation 480<br/>The sizeof Operator 481<br/>The ?: Operator 481<br/>Operator Precedence 482<br/>10.3 Working with Character Data 484<br/>Character Sets 485<br/>C++ char Constants 487<br/>Programming Techniques 488<br/>10.4 More on Floating-Point Numbers 495<br/>Representation of Floating-Point Numbers 495<br/>Arithmetic with Floating-Point Numbers 498<br/>Implementation of Floating-Point Numbers in the Computer 499<br/>10.5 User-Defined Simple Types 505<br/>The Typedef Statement 506<br/>Enumeration Types 506<br/>Named and Anonymous Data Types 513<br/>User-Written Header Files 514<br/>Contents | xxi<br/>DalePhatToc 11/4/01 2:34 PM Page xxi<br/>10.6 More on Type Coercion 515<br/>Type Coercion in Arithmetic and Relational Expressions 516<br/>Type Coercion in Assignments, Argument Passing, and Return of a<br/>Function Value 517<br/>Problem-Solving Case Study: Finding the Area Under<br/>a Curve 519<br/>Problem-Solving Case Study: Rock, Paper, Scissors 527<br/>Testing and Debugging 536<br/>Floating-Point Data 536<br/>Coping with Input Errors 536<br/>Testing and Debugging Hints 537<br/>Summary 539<br/>Quick Check 539<br/>Answers 540<br/>Exam Preparation Exercises 540<br/>Programming Warm-Up Exercises 543<br/>Programming Problems 544<br/>Case Study Follow-Up 545<br/>11 Structured Types, Data Abstraction, and Classes 547<br/>11.1 Simple Versus Structured Data Types 548<br/>11.2 Records (C++ Structs) 549<br/>Accessing Individual Components 551<br/>Aggregate Operations on Structs 553<br/>More About Struct Declarations 554<br/>Hierarchical Records 555<br/>11.3 Unions 557<br/>11.4 Data Abstraction 559<br/>11.5 Abstract Data Types 561<br/>11.6 C++ Classes 564<br/>Classes, Class Objects, and Class Members 568<br/>Built-in Operations on Class Objects 569<br/>Class Scope 571<br/>Information Hiding 571<br/>11.7 Specification and Implementation Files 573<br/>The Specification File 573<br/>xxii | Contents<br/>DalePhatToc 11/4/01 2:34 PM Page xxii<br/>The Implementation File 575<br/>Compiling and Linking a Multifile Program 580<br/>11.8 Guaranteed Initialization with Class Constructors 582<br/>Invoking a Constructor 584<br/>Revised Specification and Implementation Files<br/>for TimeType 585<br/>Guidelines for Using Class Constructors 588<br/>Problem-Solving Case Study: Manipulating Dates 590<br/>Problem-Solving Case Study: Birthday Calls 602<br/>Testing and Debugging 610<br/>Testing and Debugging Hints 614<br/>Summary 615<br/>Quick Check 615<br/>Answers 617 |
| 650 #0 - SUBJECT ADDED ENTRY--TOPICAL TERM |
| Topical term or geographic name as entry element |
C++ (Computer program language) |
| 700 1# - ADDED ENTRY--PERSONAL NAME |
| Personal name |
Weems, Chip. |
| 9 (RLIN) |
18380 |
| 942 ## - ADDED ENTRY ELEMENTS (KOHA) |
| Koha item type |
Books |
| Source of classification or shelving scheme |
Dewey Decimal Classification |