Introduction to Programming with C++
Edition: 6th ed.
Publisher: Course Technology Cengage Learning
Published: 2011
Place of publication: Boston, Mass.
Language: eng
Format: Paperback
ISBN-13: 9780538466523
Copyright date: 2011
Table of contents: title: Preface; title: 1:  Introduction To Programming; title: Programming a computer; title: Programmer's job; title: Do I have what it takes to be a programmer?; title: Employment opportunities; title: Brief history of programming languages; title: Machine languages; title: Assembly languages; title: High-level languages; title: Control structure; title: Sequence structure; title: Selection structure; title: Repetition structure; title: Summary; title: Key terms; title: Review questions; title: Exercises; title: 2:  Beginning The Problem-Solving Process; title: Problem solving; title: Solving everyday problems; title: Creating computer solutions to problems; title: Step 1-Analyze the problem; title: Step 2-Plan the algorithm; title: Step 3-Desk-check the algorithm; title: Gas mileage problem; title: Summary; title: Key terms; title: Review questions; title: Exercises; title: 3:  Variables And Constants; title: Beginning step 4 in the problem-solving process; title: Internal memory; title: Selecting a name for a memory location; title: Revisiting the Treyson Mobley problem; title: Selecting a data type for a memory location; title: How data is stored in internal memory; title: Selecting an initial value for a memory location; title: Declaring a memory location; title: Summary; title: Key terms; title: Review questions; title: Exercises; title: 4:  Completing The Problem-Solving Process; title: Finishing step 4 in the problem-solving process; title: Getting data from the keyboard; title: Displaying messages on the computer screen; title: Arithmetic operators in C++; title: Type conversions in arithmetic expressions; title: Static_cast operator; title: Assignment statements; title: Step 5-Desk check the program; title: Step 6-Evaluate and modify the program; title: Arithmetic assignment operators; title: Summary; title: Key terms; title: Review questions; title: Exercises; title: 5:  Selection Structure; title: Making decisions; title: Flowcharting a selection structure; title: Coding a selection structure in C++; title: Comparison operators; title: Swapping numeric values; title: Displaying the sum or difference; title: Logical operators; title: Using the truth tables; title: Calculating gross pay; title: Pass/fail program; title: Converting a character to uppercase or lowercase; title: Formatting numeric output; title: Summary; title: Key terms; title: Review questions; title: Exercises; title: 6:  More On The Selection Structure; title: Making decisions; title: Flowcharting a nested selection structure; title: Coding a nested selection structure; title: Logic errors in selection structures; title: First logic error:  Using a compound condition rather than a nested selection structure; title: Second logic error:  Reversing the outer and nested decisions; title: Third logic error:  Using an unnecessary nested selection structure; title: Multiple-alternative selection structures; title: Switch statement; title: Summary; title: Key terms; title: Review questions; title: Exercises; title: 7:  Repetition Structure; title: Repeating program instructions; title: Using a pretest loop to solve a real-world problem; title: Flowcharting a pretest loop; title: While statement; title: Using counters and accumulators; title: Sales express program; title: Counter-controlled pretest loops; title: For statement; title: Holmes supply program; title: Colfax sales program; title: Another version of the Miller Incorporated program; title: Summary; title: Key terms; title: Review questions; title: Exercises; title: 8:  More On The Repetition Structure; title: Posttest loops; title: Flowcharting a posttest loop; title: Do while statement; title: Nest repetition structures; title: Asterisks program; title: Savings calculator program; title: Pow function; title: Coding the savings calculator program; title: Modifying the savings calculator program; title: Summary; title: Key terms; title: Review questions; title: Exercises; title: 9:  Value-Returning Functions; title: Functions; title: Hypotenuse program; title: Finding the square root of a number; title: Random addition problems program; title: Generating random integers; title: Creating program-defined value-returning functions; title: Calling a function; title: Function prototypes; title: Plano Elementary School program; title: Area calculator program; title: Scope and lifetime of a variable; title: Bonus calculator program; title: Summary; title: Key terms; title: Review questions; title: Exercises; title: 10:  Void Functions; title: Void functions; title: Passing variables to a function; title: Reviewing passing variables by value; title: Passing variables by reference; title: Salary program; title: Summary; title: Key terms; title: Review questions; title: Exercises; title: 11:  One-Dimensional Arrays; title: Arrays; title: One-dimensional arrays; title: Declaring and initializing a one-dimensional array; title: Entering data into a one-dimensional array; title: Displaying the contents of a one-dimensional array; title: Coding the XYZ company's sales program; title: Passing a one-dimensional array to a function; title: Moonbucks Coffee program-calculating a total and average; title: KL Motors program-searching an array; title: Hourly rate program-accessing an individual element; title: Random numbers program; title: Sorting the data stored in a one-dimensional array; title: Parallel one-dimensional arrays; title: Summary; title: Key terms; title: Review questions; title: Exercises; title: 12:  Two-Dimensional Arrays; title: Using two-dimensional arrays; title: Declaring and initializing a two-dimensional array; title: Entering data into a two-dimensional array; title: Displaying the contents of two-dimensional array; title: Coding the Caldwell Company's orders program; title: Accumulating the values stored in a two-dimensional array; title: Searching a two-dimensional array; title: Passing a two-dimensional array to a function; title: Summary; title: Key term; title: Review questions; title: Exercises; title: 13:  Strings; title: String data type; title: Creative sales program; title: Getline function; title: Ignore function; title: ZIP code program; title: Determining the number of characters contained in a string variable; title: Accessing the characters contained in a string variable; title: Rearranged name program; title: Searching the contents of a string variable; title: Annual income program; title: Removing characters from a string variable; title: Replacing characters in a string variable; title: Social Security number program; title: Inserting characters within a string variable; title: Company name program; title: Duplicating a character within a string variable; title: Concatenating strings; title: Summary; title: Key terms; title: Review questions; title: Exercises; title: 14:  Sequential Access Files; title: File types; title: CD collection program; title: Creating file objects; title: Opening a sequential access file; title: Determining whether a file was opened successfully; title: Writing data to a sequential access file; title: Reading information from a sequential access file; title: Testing for the end of a sequential access file; title: Closing a sequential access file; title: Coding the CD collection program; title: Summary; title: Key terms; title: Review questions; title: Exercises; title: Appendix A:  Answers to Mini-Quizzes and Labs; title: Appendix B:  C++ Keywords; title: Appendix C:  ASCII Codes; title: Appendix D:  How to use Microsoft Visual C++; title: Appendix E:  How to use Dev-C++; title: Appendix F:  Classes and objects; title: Object-oriented terminology; title: Defining a class in C++; title: Instantiating an object and referring to a public member; title: Example 1-Class that contains public data members only; title: Header files; title: Example 2-Class that contains a private data member and public member methods; title: Example 3-Using a class that contains two constructors; title: Example 4-Class that contains overloaded methods; title: Summary; title: Key terms; title: Review questions; title: Exercises