Introduce the power and practicality of C++ programming to entry-level engineers with Bronson's C++ FOR ENGINEERS AND SCIENTISTS, 4E. This proven, pragmatic text is designed specifically for today's first- and second-year engineering and science students with a wealth of new applications and examples taken from real situations involving electrical and structural engineering, fluid mechanics, mathematics, power generation, and heat transfer challenges. The book starts with a solid foundation in procedural programming before moving into a reorganized, clear presentation of object-oriented concepts. Dynamic case studies, career spotlights and engineering-driven applications showcase the relevance of concepts students are learning to their careers. Helpful tips demonstrate how to avoid common C++ programming errors, while updates ensure that students are learning the most recent C++ code standards.
Author(s): Gary J. Bronson
Edition: 4
Publisher: Cengage Learning
Year: 2012
Language: English
Pages: 752
Brief Table of Contents
Contents
Preface
Part I: Fundamentals of C++ Programming
Ch 1: Preliminaries
1.1 Preliminary One: Unit Analysis
Exercises 1.1
1.2 Preliminary Two: Exponential and Scientific Notations
Exercises 1.2
1.3 Preliminary Three: Software Development
Exercises 1.3
1.4 Preliminary Four: Algorithms
Exercises 1.4
1.5 A Closer Look: Software, Hardware, and Computer Storage
1.6 Common Programming Errors
1.7 Chapter Summary
Ch 2: Problem Solving Using C++
2.1 Introduction to C++
Exercises 2.1
2.2 Programming Style
Exercises 2.2
2.3 Data Types
Exercises 2.3
2.4 Arithmetic Operations
Exercises 2.4
2.5 Variables and Declaration Statements
Exercises 2.5
2.6 A Case Study: Radar Speed Traps
Exercises 2.6
2.7 Common Programming Errors
2.8 Chapter Summary
Ch 3: Assignment, Formatting, and Interactive Input
3.1 Assignment Operations
Exercises 3.1
3.2 Formatting Numbers for Program Output
Exercises 3.2
3.3 Using Mathematical Library Functions
Exercises 3.3
3.4 Program Input Using cin
Exercises 3.4
3.5 Symbolic Constants
Exercises 3.5
3.6 A Case Study: Acid Rain
Exercises 3.6
3.7 A Closer Look: Programming Errors
3.8 Common Programming Errors
3.9 Chapter Summary
Ch 4: Selection Structures
4.1 Selection Criteria
Exercises 4.1
4.2 The if-else Statement
Exercises 4.2
4.3 Nested if Statements
Exercises 4.3
4.4 The switch Statement
Exercises 4.4
4.5 A Case Study: Solving Quadratic Equations
Exercises 4.5
4.6 A Closer Look: Program Testing
4.7 Common Programming Errors
4.8 Chapter Summary
Ch 5: Repetition Statements
5.1 Basic Loop Structures
Exercises 5.1
5.2 while Loops
Exercises 5.2
5.3 Interactive while Loops
Exercises 5.3
5.4 for Loops
Exercises 5.4
5.5 A Closer Look: Loop Programming Techniques
Exercises 5.5
5.6 Nested Loops
Exercises 5.6
5.7 do while Loops
Exercises 5.7
5.8 Common Programming Errors
5.9 Chapter Summary
Ch 6: Modularity Using Functions
6.1 Function and Parameter Declarations
Exercises 6.1
6.2 Returning a Single Value
Exercises 6.2
6.3 Returning Multiple Values
Exercises 6.3
6.4 A Case Study: Rectangular to Polar Coordinate Conversion
Exercises 6.4
6.5 Variable Scope
Exercises 6.5
6.6 Variable Storage Categories
Exercises 6.6
6.7 Common Programming Errors
6.8 Chapter Summary
Ch 7: Arrays
7.1 One-Dimensional Arrays
Exercises 7.1
7.2 Array Initialization
Exercises 7.2
7.3 Declaring and Processing Two-Dimensional Arrays
Exercises 7.3
7.4 Arrays as Arguments
Exercises 7.4
7.5 Case Studies
Exercises 7.5
7.6 The Standard Template Library (STL)
Exercises 7.6
7.7 A Closer Look: Searching and Sorting
7.8 Common Programming Errors
7.9 Chapter Summary
Ch 8: I/O Streams and Data Files
8.1 I/O File Stream Objects and Functions
Exercises 8.1
8.2 Reading and Writing Character-Based Files
Exercises 8.2
8.3 Random File Access
Exercises 8.3
8.4 File Streams as Function Arguments
Exercises 8.4
8.5 A Case Study: Pollen Count File Update
Exercises 8.5
8.6 A Closer Look: The iostream Class Library
8.7 Common Programming Errors
8.8 Chapter Summary
Ch 9: Completing the Basics
9.1 Exception Handling
Exercises 9.1
9.2 Exceptions and File Checking
Exercises 9.2
9.3 The string Class
Exercises 9.3
9.4 Character Manipulation Functions
Exercises 9.4
9.5 Input Data Validation
Exercises 9.5
9.6 A Closer Look: Namespaces and Creating a Personal Library
Exercises 9.6
9.7 Common Programming Errors
9.8 Chapter Summary
Ch 10: Pointers
10.1 Addresses and Pointers
Exercises 10.1
10.2 Array Names as Pointers
Exercises 10.2
10.3 Pointer Arithmetic
Exercises 10.3
10.4 Passing Addresses
Exercises 10.4
10.5 Common Programming Errors
10.6 Chapter Summary
Part II: Object-Oriented Programming
Ch 11: Introduction to Classes
11.1 Classes
Exercises 11.1
11.2 Basic Class Functions
Exercises 11.2
11.3 Adding Class Functions
Exercises 11.3
11.4 A Case Study: Constructing a Date Class
Exercises 11.4
11.5 A Closer Look: UML Class and Object Diagrams
Exercises 11.5
11.6 Common Programming Errors
11.7 Chapter Summary
Ch 12: Adding Functionality to Your Classes
12.1 Providing Class I/O Capabilities
Exercises 12.1
12.2 Providing Class Conversion Capabilities
Exercises 12.2
12.3 Class Scope and Duration Categories
Exercises 12.3
12.4 Class Inheritance and Polymorphism
Exercises 12.4
12.5 Virtual Functions
Exercises 12.5
12.6 Common Programming Errors
12.7 Chapter Summary
Part III: Additional Topics
Ch 13: Structures
13.1 Single Structures
Exercises 13.1
13.2 Arrays of Structures
Exercises 13.2
13.3 Structures as Function Arguments
Exercises 13.3
13.4 Linked Lists
Exercises 13.4
13.5 Dynamic Data Structure Allocation
Exercises 13.5
13.6 Unions
Exercises 13.6
13.7 Common Programming Errors
13.8 Chapter Summary
Ch 14: Numerical Methods
14.1 Introduction to Root Finding
Exercises 14.1
14.2 The Bisection Method
Exercises 14.2
14.3 Refinements to the Bisection Method
Exercises 14.3
14.4 The Secant Method
Exercises 14.4
14.5 Introduction to Numerical Integration
14.6 The Trapezoidal Rule
Exercises 14.6
14.7 Simpson's Rule
Exercises 14.7
14.8 Common Programming Errors
14.9 Chapter Summary
Appendixes
Appendix A: Operator Precedence Table
Appendix B: ASCII Character Codes
Appendix C: Floating-Point Number Storage
Appendix D: Command-Line Arguments
Index