did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780619217112

Introduction to Programming with C++

by
  • ISBN13:

    9780619217112

  • ISBN10:

    0619217111

  • Edition: 4th
  • Format: Paperback
  • Copyright: 2004-12-21
  • Publisher: Course Technology
  • View Upgraded Edition
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $244.99 Save up to $1.22
  • Buy New
    $243.77
    Add to Cart Free Shipping Icon Free Shipping

    USUALLY SHIPS IN 24-48 HOURS

Supplemental Materials

What is included with this book?

Summary

Offer your students a comprehensive introduction to programming using C++ as the illustrative language! By actively working through this hands-on text, students will gain confidence knowing that they have mastered essential C++ skills and techniques.

Table of Contents

Preface xiii
Read This Before You Begin xvii
Overview An Overview of a Personal Computer System
1(572)
An Introduction to a Personal Computer System
2(1)
An Overview of Hardware and Software
2(4)
Peripherals
3(1)
Internal Memory
3(1)
The Central Processing Unit
4(1)
Types of Software
5(1)
Mini-Quiz 1
6(1)
A Brief History of Programming Languages
6(5)
Machine Languages
7(1)
Assembly Languages
7(1)
High-Level Languages
8(3)
Summary
11(1)
Answers to Mini-Quizzes
12(1)
Questions
12(2)
Exercises
14(1)
An Introduction to Control Structures
15(22)
Concept Lesson
16(5)
Defining Control Structures
16(1)
The Sequence Structure
16(1)
Mini-Quiz 1
17(1)
The Repetition Structure
17(2)
The Selection Structure
19(1)
Mini-Quiz 1
20(1)
Summary
21(1)
Answers to Mini-Quizzes
21(1)
Questions
21(2)
Exercises
23(2)
Application Lesson
25(7)
Using the Control Structures
25(1)
Activity for Lab 1.3
25(7)
Answers to Labs
32(1)
Exercises
32(5)
Beginning the Problem-Solving Process
37(36)
Concept Lesson
38(23)
Problem Solving
38(1)
Solving Everyday Problems
38(1)
Creating Computer Solutions to Problems
39(1)
Analyzing the Problem
40(1)
IPO Charts
41(2)
Mini-Quiz 1
43(1)
Planning the Algorithm
43(3)
Hints for Writing Algorithms
46(2)
Mini-Quiz 2
48(1)
Desk-Checking the Algorithm
49(2)
The Gas Mileage Problem
51(2)
Mini-Quiz 3
53(1)
Summary
53(1)
Answers to Mini-Quizzes
54(2)
Questions
56(3)
Exercises
59(2)
Application Lesson
61(12)
Using the First Steps in the Problem-Solving Process
61(1)
Questions
61(1)
The Problem Specification
62(1)
Analyze the Problem
62(1)
Planning the Algorithm
63(1)
Desk-Checking the Algorithm
64(3)
Answers to Labs
67(1)
Exercises
68(5)
Completing the Problem-Solving Process and Getting Started with C++
73(50)
Concept Lesson
74(22)
More on the Problem-Solving Process
74(1)
Coding the Algorithm into a Program
74(1)
Assigning Names, Data Types, and Initial Values to the IPO Items
75(1)
Translating the Algorithm Steps into C++ Code
76(2)
Mini-Quiz 1
78(1)
Desk-Checking the Program
79(2)
Evaluating and Modifying the Program
81(1)
Mini-Quiz 2
82(1)
Creating a C++ Program
82(4)
Mini-Quiz 3
86(1)
Summary
86(2)
Answers to Mini-Quizzes
88(1)
Questions
88(3)
Exercises
91(5)
Application Lesson
96(27)
Completing the Problem-Solving Process
96(1)
Questions
96(1)
Activity for Lab 3.2
97(8)
Managing the Windows in the IDE
105(2)
Entering the C++ Instructions into the Source File
107(1)
Saving a Solution
108(1)
Closing the Current Solution
109(1)
Opening an Existing Solution
109(1)
Saving, Building, and Executing a C++ Program
110(2)
Locating and Correcting an Error in a Program
112(2)
Printing a C++ Program
114(1)
Making a Backup Copy of a C++ Solution
115(1)
Activity for Lab 3.3
115(1)
Answers to Labs
116(2)
Exercises
118(5)
Variables, Constants, and Arithmetic Operators
123(46)
Concept Lesson
124(32)
More on the Problem-Solving Process
124(1)
Variables and Named Constants
125(1)
Selecting a Name for a Memory Location
126(2)
Selecting a Data Type for a Memory Location
128(1)
How Data Is Stored in Internal Memory
129(3)
Selecting an Initial Value for a Memory Location
132(1)
Type Casting
133(4)
Mini-Quiz 1
137(1)
Declaring a Named Constant
137(2)
Declaring a Variable
139(1)
Mini-Quiz 2
140(1)
Using an Assignment Statement to Store Data in a Variable
140(2)
Arithmetic Operators
142(2)
Mini-Quiz 3
144(1)
Getting Data from the Keyboard
145(1)
The getline( ) Function
145(1)
The ignore( ) Function
145(4)
Mini-Quiz 4
149(1)
Summary
149(1)
Answers to Mini-Quizzes
150(1)
Questions
151(3)
Exercises
154(2)
Application Lesson
156(13)
Using Variables, Constants, and Arithmetic Operators in a C++ Program
156(1)
Questions
156(2)
Activity for Lab 4.2
158(2)
Activity for Lab 4.3
160(1)
Answers to Labs
161(1)
Exercises
162(7)
The Selection Structure
169(40)
Concept Lesson
170(26)
Using the Selection Structure
170(1)
Including the Selection Structure in Pseudocode
171(1)
Drawing a Flowchart of a Selection Structure
172(1)
Coding the Selection Structure
173(1)
Comparison Operators
174(2)
Comparison Operator Program 1: Swapping Numeric Values
176(1)
Comparison Operator Program 2: Displaying the Sum or Difference
177(2)
Mini-Quiz 1
179(1)
Logical Operators
179(1)
Using the Truth Tables
180(2)
Mini-Quiz 2
182(1)
Logical Operator Program: Calculating Gross Pay
182(1)
Comparing Characters
183(2)
Converting a Character to Uppercase or Lowercase
185(1)
Comparing Strings
186(1)
Converting a String to Uppercase or Lowercase
186(2)
Mini-Quiz 3
188(1)
Summary
188(1)
Answers to Mini-Quizzes
189(1)
Questions
190(1)
Exercises
191(5)
Application Lesson
196(13)
Using the Selection Structure in a C++ Program
196(1)
Questions
197(1)
Activity for Lab 5.2
198(3)
Activity for Lab 5.3
201(1)
Answers to Labs
202(3)
Exercises
205(4)
More on the Selection Structure
209(48)
Concept Lesson
210(31)
Nested Selection Structures
210(4)
Another Example of a Nested Selection Structure
214(2)
Mini-Quiz 1
216(1)
Logic Errors in Selection Structures
216(2)
Using a Logical Operator Rather Than a Nested Selection Structure
218(2)
Reversing the Primary and Secondary Decisions
220(1)
Using an Unnecessary Nested Selection Structure
221(1)
Mini-Quiz 2
222(1)
Using the if/else Form to Create Multiple-Path Selection Structures
222(2)
Using the switch Form to Create Multiple-Path Selection Structures
224(3)
Desk-Checking the Grade Program
227(1)
Mini-Quiz 3
228(1)
Formatting Numeric Output
229(1)
Summary
230(1)
Answers to Mini-Quizzes
231(1)
Questions
232(3)
Exercises
235(6)
Application Lesson
241(16)
Using the Selection Structure in a C++ Program
241(1)
Questions
242(3)
Activity for Lab 6.2
245(2)
Activity for Lab 6.3
247(1)
Answers to Labs
248(3)
Exercises
251(6)
The Repetition Structure
257(46)
Concept Lesson
258(30)
Using the Repetition Structure
258(1)
Pretest Loops
258(3)
Flowcharting a Pretest Loop
261(2)
Using the while Statement to Code a Pretest Loop
263(2)
Mini-Quiz 1
265(1)
Using Counters and Accumulators
265(1)
The Sales Express Program
265(3)
Mini-Quiz 2
268(1)
Counter-Controlled Pretest Loops
269(2)
Using the for Statement to Code a Pretest Loop
271(1)
Example 1 -- Displaying the Numbers 1 Through 3
272(2)
Example 2 -- Calculating and Displaying a Commission
274(2)
Example 3 -- Calculating and Displaying a Bonus
276(1)
Mini-Quiz 3
277(1)
Summary
278(1)
Answers to Mini-Quizzes
278(1)
Questions
279(4)
Exercises
283(5)
Application Lesson
288(15)
Using the Repetition Structure in a C++ Program
288(1)
Questions
289(2)
Activity for Lab 7.2
291(2)
Activity for Lab 7.3
293(1)
Answers to Labs
294(3)
Exercises
297(6)
More on the Repetition Structure
303(30)
Concept Lesson
304(18)
Posttest Loops
304(1)
Flowcharting a Posttest Loop
305(3)
Mini-Quiz 1
308(1)
Coding the Posttest Loop
308(2)
Mini-Quiz 2
310(1)
Nested Repetition Structures
310(1)
The Max Beauty Supply Program
310(5)
Mini-Quiz 3
315(1)
Summary
315(1)
Answers to Mini-Quizzes
315(1)
Questions
316(2)
Exercises
318(4)
Application Lesson
322(11)
Using a Nested Repetition Structure in a C++ Program
322(1)
Questions
322(2)
Activity for Lab 8.2
324(2)
Activity for Lab 8.3
326(1)
Answers to Labs
327(2)
Exercises
329(4)
Value-Returning Functions
333(40)
Concept Lesson
334(23)
Functions
334(1)
Value-Returning Functions
334(1)
Raising a Number to a Power
334(1)
Generating Random Numbers
335(3)
Creating Program-Defined Value-Returning Functions
338(1)
Function Header
339(1)
Function Body
340(1)
Mini-Quiz 1
341(1)
Using a Function Prototype
341(1)
Processing a Function
342(1)
Desk-Checking the Program Shown in Figure 9-8
343(2)
The Scope and Lifetime of a Variable
345(1)
Another Example of Calling and Defining Value-Returning Functions
346(4)
Mini-Quiz 2
350(1)
Summary
350(1)
Answers to Mini-Quizzes
351(1)
Questions
352(2)
Exercises
354(3)
Application Lesson
357(16)
Using Value-Returning Functions in a C++ Program
357(1)
Questions
357(4)
Activity for Lab 9.2
361(3)
Activity for Lab 9.3
364(1)
Answers to Labs
365(3)
Exercises
368(5)
Void Functions
373(42)
Concept Lesson
374(21)
More About Functions
374(1)
Creating Void Functions
374(2)
Mini-Quiz 1
376(1)
Passing Variables
376(1)
Passing Variables by Value
376(1)
Desk-checking Figure 10-2's Program
377(2)
Passing Variables by Reference
379(2)
Desk-checking Figure 10-7's Program
381(2)
Mini-Quiz 2
383(1)
Passing Variables by Value and by Reference
384(4)
Mini-Quiz 3
388(1)
Summary
388(1)
Answers to Mini-Quizzes
389(1)
Questions
389(3)
Exercises
392(3)
Application Lesson
395(20)
Using Void Functions in a C++ Program
395(1)
Questions
396(3)
Activity for Lab 10.2
399(3)
Activity for Lab 10.3
402(1)
Answers to Labs
403(3)
Exercises
406(9)
Arrays
415(48)
Concept Lesson
416(31)
Using Arrays
416(1)
One-Dimensional Arrays
416(3)
Storing Data in a One-Dimensional Array
419(1)
Mini-Quiz 1
420(1)
Manipulating One-Dimensional Arrays
420(1)
Displaying the Contents of a One-Dimensional Array
420(1)
Using the Subscript to Access an Element in a One-Dimensional Array
421(1)
Searching a One-Dimensional Array
422(2)
Calculating the Average Amount Stored in a One-Dimensional Numeric Array
424(1)
Mini-Quiz 2
425(1)
Determining the Highest Value Stored in a One-Dimensional Array
425(2)
Updating the Values Stored in a One-Dimensional Array
427(1)
Sorting the Data Stored in a One-Dimensional Array
428(2)
Mini-Quiz 3
430(1)
Passing a One-Dimensional Array to a Function
430(2)
Using Parallel One-Dimensional Arrays
432(3)
Mini-Quiz 4
435(1)
Two-Dimensional Arrays
435(2)
Storing Data in a Two-Dimensional Array
437(1)
Mini-Quiz 5
438(1)
Summary
439(1)
Answers to Mini-Quizzes
439(1)
Questions
440(5)
Exercises
445(2)
Application Lesson
447(16)
Using an Array in a C++ Program
447(1)
Questions
447(3)
Activity for Lab 11.2
450(3)
Activity for Lab 11.3
453(1)
Answers to Labs
454(3)
Exercises
457(6)
String Manipulation
463(36)
Concept Lesson
464(21)
Manipulating Strings
464(1)
Determining the Number of Characters Contained in a String
464(1)
Removing Characters from a String
465(2)
Accessing Characters Contained in a String
467(1)
Mini-Quiz 1
468(1)
Replacing Characters in a String
469(1)
Inserting Characters within a String
469(1)
Searching a String
470(2)
Mini-Quiz 2
472(1)
Comparing a Portion of a string Variable's Contents to Another String
473(2)
Duplicating a Character within a string Variable
475(1)
Concatenating Strings
476(1)
Mini-Quiz 3
477(1)
Summary
477(1)
Answers to Mini-Quizzes
478(1)
Questions
479(3)
Exercises
482(3)
Application Lesson
485(14)
Using String Manipulation in a C++ Program
485(1)
Questions
486(2)
Activity for Lab 12.2
488(3)
Activity for Lab 12.3
491(1)
Answers to Labs
492(3)
Exercises
495(4)
Sequential Access Files
499(40)
Concept Lesson
500(20)
File Types
500(1)
Using Sequential Access Files
500(1)
Creating and Opening a Sequential Access File
501(3)
Mini-Quiz 1
504(1)
Determining Whether a File Was Opened Successfully
504(2)
Writing Information to a Sequential Access File
506(1)
Reading Information from a Sequential Access File
507(2)
Mini-Quiz 2
509(1)
Testing for the End of a Sequential Access File
509(1)
Closing a Sequential Access File
510(1)
Mini-Quiz 3
511(1)
Summary
511(1)
Answers to Mini-Quizzes
512(1)
Questions
512(2)
Exercises
514(6)
Application Lesson
520(19)
Using a Sequential Access File in a C++ Program
520(1)
Questions
521(4)
Activity for Lab 13.2
525(5)
Activity for Lab 13.3
530(1)
Answers to Labs
531(4)
Exercises
535(4)
Classes and Objects
539(34)
Concept Lesson
540(16)
Programming Methods
540(1)
Object-Oriented Programming
540(1)
Object-Oriented Programming Terminology
540(3)
Mini-Quiz 1
543(1)
Defining a Class in C++
543(1)
The Declaration Section of the Class Definition
543(2)
Mini-Quiz 2
545(1)
The Implementation Section of the Class Definition
545(1)
The Default Constructor
546(1)
Public Member Methods
547(1)
Using the Class in a Program
547(3)
Mini-Quiz 3
550(1)
Summary
550(1)
Answers to Mini-Quizzes
550(1)
Questions
551(2)
Exercises
553(3)
Application Lesson
556(17)
Using Classes and Objects in a C++ Program
556(1)
Questions
557(4)
Activity for Lab 14.2
561(2)
Activity for Lab 14.3
563(3)
Answers to Labs
566(1)
Exercises
567(6)
Appendix A ASCII Codes
573(2)
Appendix B C-Strings
575(6)
Declaring and Using C-Strings
575(2)
Assigning Data to a C-String Variable
577(1)
Comparing C-Strings
578(3)
Appendix C Pointers
581(8)
Using Pointer Variables
581(5)
Declaring and Initializing a Pointer
582(1)
Assigning an Address to a Pointer
583(1)
Using a Pointer to Access the Value Stored in a Variable
583(3)
Passing a Pointer to a Function
586(3)
Index 589

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program