Engineering Problem Solving with C Delores M. Etter instant download
Engineering Problem Solving with C Delores M. Etter instant download
Etter download
https://ebookultra.com/download/engineering-problem-solving-with-
c-delores-m-etter/
https://ebookultra.com/download/data-abstraction-problem-solving-
with-c-6th-edition-frank-m-carrano/
https://ebookultra.com/download/problem-solving-with-c-6th-edition-
savitch/
https://ebookultra.com/download/programming-and-problem-solving-with-
c-comprehensive-comprehensive-edition-nell-b-dale/
https://ebookultra.com/download/data-abstraction-and-problem-solving-
with-java-walls-and-mirrors-frank-m-carrano/
Problem Solving and Program Design in C Third Edition Jeri
R. Hanly
https://ebookultra.com/download/problem-solving-and-program-design-in-
c-third-edition-jeri-r-hanly/
https://ebookultra.com/download/data-structures-and-problem-solving-
using-c-2nd-international-edition-edition-mark-allen-weiss/
https://ebookultra.com/download/the-problem-solving-memory-jogger-
michael-brassard/
https://ebookultra.com/download/problem-solving-in-oncology-1st-
edition-dearbhaile/
Engineering Problem Solving with C Delores M. Etter
Digital Instant Download
Author(s): Delores M. Etter; Jeanine A. Ingber
ISBN(s): 9780132492652, 0132492652
Edition: ebook
File Details: PDF, 8.64 MB
Year: 2012
Language: english
This page intentionally left blank
ENGINEERING
PROBLEM SOLVING
WITH C++
Third Edition
Delores M. Etter
Electrical Engineering Department
Southern Methodist University, Dallas, TX
Jeanine A. Ingber
Accurate Solutions in Applied Physics, LLC
Boston Columbus Indianapolis New York San Francisco Upper Saddle River
Amsterdam Cape Town Dubai London Madrid Milan Munich Paris Montréal Toronto
Delhi Mexico City São Paulo Sydney Hong Kong Seoul Singapore Taipei Tokyo
Vice President and Editorial Director, ECS: Art Director: Anthony Gemmellaro
Marcia Horton Cover Designer: Anthony Gemmellaro
Editor-in-Chief: Michael Hirsch Manager, Visual Research: Karen Sanatar
Executive Editor: Tracy Dunkelberger Photo Researcher: Lily Ferguson, Bill Smith Group
Editorial Assistant: Stephanie Sellinger Cover Art: Mars: U.S. Geological Survey/Photo
Vice President, Marketing: Patrice Jones Researchers, Inc. Arabia Dunes: NASA/
Marketing Manager: Yezan Alayan JPL-Caltech/ASU
Marketing Coordinator: Kathryn Ferranti Media Editor: Daniel Sandin
Marketing Assistant: Emma Snider Media Project Manager: John Cassar
Vice President, Production: Vince O’Brien Full-Service Project Management and
Managing Editor: Jeff Holcomb Composition: Integra
Production Project Manager: Kayla Smith-Tarbox Printer/Binder: Edwards Brothers
Senior Operations Supervisor: Alan Fischer Cover Printer: Lehigh-Phoenix Color/Hagerstown
Manufacturing Buyer: Lisa McDowell Text Font: 10/12, TimesNewRoman
Credits and acknowledgements borrowed from other sources and reproduced, with permission, are as follows: Chapter 1 opener
NASA/Ames Research Center; Figure 1.1 c Adam Hart-Davis/Photo Researchers, Inc.; Figure 1.2 c Dr. Jeremy Burgess/Photo
Researchers, Inc.; Figure 1.3
c Photo by Hulton Archive/Getty Images; Figure 1.4 c Science Source/Photo Researchers, Inc.; Figure 1.5
c AP Photo/Gautam Singh; Chapter 2 opener c yuyangc/Shutterstock.com; Chapter 3 opener c Mira.com/Howie Garber; Chapter 4
opener c Peter Calamai/Toronto Star/Toronto Star/Newscom; Chapter 5 opener c NASA/Science Source/Photo Researchers, Inc.; Chapter
6 opener c NASA/Science Source/Photo Researchers, Inc.; Chapter 7 opener c HO/AFP/Getty Images/Newscom; Chapter 8 opener c
NASA/Jet Propulsion Laboratory; Chapter 9 opener c Warren Faidley/Photolibrary; Chapter 10 opener
c Garry Gay/Alamy; Figure
10.1(a, b, and c)
c NASA/JPL/Ames Research Center; Insert photo I.1 c NOAA/Science Photo Library; Insert photo I.2 and I.3 c Ilene
MacDonald/Alamy; Insert photo I.4, I.5, I.6
c Mehau Kulyk/Photo Researchers, Inc.; Insert photo I.7
c NASA/Photo Researchers, Inc.;
Insert photo I.8 and I.9
c NASA/Jet Propulsion Laboratory; Insert photo I.10
c Scott White/UIUC/Photo Researchers; Insert photo I.11 c
Image generated by Robert F. Tomaro and Kenneth E. Wurtzler, Computational Sciences Branch, Air Vehicles Directorate, Air Force
Research Laboratory.; Insert photo I.12
c Ramon Santos/Photo Researchers, Inc.; Screenshots pg. 69–76, 123–128 c Oracle Corporation;
Screenshots pg. 170–174 c Microsoft Corporation.
Microsoft R
and Windows R
are registered trademarks of the Microsoft Corporation in the U.S.A. and other countries. Screen shots and
icons reprinted with permission from the Microsoft Corporation. This book is not sponsored or endorsed by or affiliated with the Microsoft
Corporation.
Copyright c 2012, 2008, 2003 Pearson Education, Inc., publishing as Prentice Hall 501 Boylston Street, Suite 900, Boston, MA 02116. All
rights reserved. Printed in the United States of America. This publication is protected by Copyright, and permission should be obtained from
the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic,
mechanical, photocopying, recording, or likewise. To obtain permission(s) to use material from this work, please submit a written request to
Pearson Education, Inc., Permissions Department, One Lake Street, Upper Saddle River, New Jersey 07458, or you may fax your request to
201-236-3290.
Many of the designations by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations
appear in this book, and the publisher was aware of a trademark claim, the designations have been printed in initial caps or all caps.
10 9 8 7 6 5 4 3 2 1—EB—14 13 12 11 10
Preface xi
Manipulators 64
The cin Object 67
2.6 Building C++ Solutions with IDEs: NetBeans 69
NetBeans 69
2.7 Basic Functions Included in the C++ Standard Library 76
Elementary Math Functions 77
Trigonometric Functions 78
Hyperbolic Functions* 80
Character Functions 81
2.8 Problem Solving Applied: Velocity Computation 81
2.9 System Limitations 85
Summary 86
D References 583
Index 601
Preface
The C++ programming language is derived from the C programming language, with added
features to support object-oriented programming through the use of classes and programmer-
defined types. The features of the C programming language that make it attractive for system-
level operations and embedded programming are also supported by C++, making C++ one
of the most powerful and versatile programming languages available—and a good choice for
an introduction to computing course for scientists and engineers. This text was written to
introduce engineering problem solving with C++ and also the object-oriented features of the
C++ programming language. Our objectives are the following:
• to develop a consistent methodology for solving engineering problems
• to present the object-oriented features of C++, while focusing on the fundamentals
of programming and problem solving
• to illustrate a problem-solving process with C++ through a variety of engineering
examples and applications
• to provide an easy-to-understand, integrated introduction to data types, functions,
and container classes defined in the C++ Standard Template Library
To accomplish these objectives, Chapter 1 presents a five-step process that is used con-
sistently in the rest of the text for solving engineering problems. Chapter 2 introduces the
built-in data types supported by C++ and provides an introduction to classes, pre-defined
objects, and member functions that support standard input and output. Chapters 3–6
present the fundamental capabilities of C++ for solving engineering problems, including con-
trol structures, data files, functions, and programmer-defined data types. Chapters 7 and 8
present arrays, vectors, and the string class. Chapter 9 introduces the use of pointers,
dynamic memory allocation, and linked data structures. Chapter 10 provides a more in-
depth look at some advanced topics, including function templates, class templates, recur-
sive member functions, inheritance, and virtual functions. Throughout all these chapters,
we present a large number of examples from many different engineering, science, and com-
puter science disciplines. The solutions to these examples are developed using the five-step
process and Standard C++.
Prerequisites
No prior experience with the computer is assumed. The mathematical prerequisites are college
algebra and trigonometry. Of course, the initial material can be covered much faster if the
student has used other computer languages or software tools.
Course Structure
The material in these chapters was selected to provide the basis for a one-term course in en-
gineering and scientific computing. These chapters contain the essential topics of mathemat-
ical computations, character data, control structures, functions, arrays, classes, and pointers.
Students with a background in another computer language should be able to complete this
material in one semester. A minimal course that provides only an introduction to C++ can
be designed using the nonoptional sections of the text. (Optional sections are indicated in the
Contents with an asterisk.) Three ways to use the text, along with the recommended chapter
sections, are
• Introduction to C++ Many freshman introductory courses introduce the student to
several computer tools in addition to language. For these courses, we recommend
covering the nonoptional sections of Chapters 1–8. This material presents to students
the fundamental capabilities of C++, and they will then be able to write substan-
tial programs using mathematical computations, character data, control structures,
programmer-defined data types, functions, and arrays.
• Problem Solving with C++ In a semester course devoted specifically to teaching
students to master the C++ language, we recommend covering all nonoptional sec-
tions of Chapters 1–10. This material covers all the fundamental concepts of the C++
language, including mathematical computations, character data, control structures,
functions, arrays, classes, templates, and pointers.
• Problem Solving with C++ and Numerical Techniques Upper-level students or
students who are already familiar with other high-level languages will be able to
cover the material in this text very quickly. In addition, they will be able to apply the
numerical-technique material to their other courses. Therefore, we recommend that
these students cover all sections of Chapters 1–10, including the optional material.
The chapters in this text were designed to give the instructor flexibility in the ordering of
topics. Coverage of programmer-defined types and classes is incorporated throughout the text,
beginning with Chapter 2. However, coverage of classes is placed at the end of each chapter,
in an optional section. A dependency chart is provided on the next page for illustration.
Preface xiii
Dependency Chart
CHAPTER 1
INTRODUCTION TO
COMPUTING AND ENGINEERING
PROBLEM SOLVING
CHAPTER 2
SIMPLE
C++ PROGRAMS
CHAPTER 3
CONTROL
STRUCTURES:
SELECTION
CHAPTER 4
CONTROL
STRUCTURES:
REPETITION
CHAPTER 5
WORKING WITH
DATA FILES
CHAPTER 6
MODULAR PROGRAMMING
WITH FUNCTIONS
CHAPTER 7
ONE-DIMENSIONAL
ARRAYS
CHAPTER 8
TWO-DIMENSIONAL
ARRAYS
CHAPTER 9
AN INTRODUCTION
TO POINTERS
CHAPTER 10
ADVANCED TOPICS
Random documents with unrelated
content Scribd suggests to you:
sukkeluuden.
"Kuinka niin?"
"Jos hän kuulee teidän laskevan leikkiä, ylittää hän siinä teidän
korkeutenne ja ivailee minua säälimättä."
"Rakastumisestasi prinsessaanko?"
"Kiitos, monseigneur."
"Minäkö, monseigneur?"
"Niin."
"No, älähän nyt huoli kieltää. Sinä lähdit silloin prinsessan luota
silmät raivosta hehkuvina. Se tuotti sinulle onnettomuutta, ystäväni,
ja eilen tanssit juhlassa ylen kurjasti. Älä noin murra suutasi;
tuollaiset karhun eleet vahingoittavat sinua. Jos prinsessa sinua eilen
katseli, niin olenpa varma siitä, että…"
Prinssi Filip jatkoi: "No, sinä olet siis tullut takaisin meidän miesten
pariin, joten on toivoa, että junkkari jälleen suopuu herttaiseksi."
"Pyh, todellako?"
"Todellakaan, monseigneur…"
"Sepä hauskaa!"
"Minäkö, monseigneur?"
"Mitä joutavia!"
"No, no, sinä liioittelet! Mitä nyt niistä parista lyhyestä viikosta,
jotka hän on toimittanut sinut viettämään maaseudulla!"
"En koskaan."
"Monseigneur…"
"Saat nähdä, että hän osaa ottaa vastaan kuin prinsessa ja laskea
leikkiä kuin porvarisnainen. Huomaat, että hän tahtoessaan saa
tunnit kiitämään kuin minuutit. De Guiche, ystäväni, sinun pitää
peruuttaa käsityksesi vaimostani."
"Monseigneur…"
"Ehdottomasti."
"Toimita asiasi."
"Tule, tule, sinä hauska toveri, ja tiedä, etten tule toimeen ilman
sinua. Tule pian takaisin."
"Pah!"
"Nimeä se."
"Malicorne."
"Ruma nimi."
"Millaisen paikan?"
"Kotipoliisiko?"
"Jotakuinkin."
"Malicorne, monseigneur."
"Minäkö?"
"Epäilemättä. Monseigneur on jo nähnyt hänet Palais-Royalissa,
vieläpä juuri minun esittelemänäni."
Viitteet:
[1] "Monsieur" (hyvä herra; isolla alkukirjaimella ilman sukunimeä
kirjoitettuna) sitä käytetään kuninkaan nuoremmasta veljestä (joka
sittemmin saattaa olla hallitsevan kuninkaan setä). Suom.
[18] Muista!
[54] Ainiaaksi.
Updated editions will replace the previous one—the old editions will
be renamed.
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the
terms of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if you
provide access to or distribute copies of a Project Gutenberg™ work
in a format other than “Plain Vanilla ASCII” or other format used in
the official version posted on the official Project Gutenberg™ website
(www.gutenberg.org), you must, at no additional cost, fee or
expense to the user, provide a copy, a means of exporting a copy, or
a means of obtaining a copy upon request, of the work in its original
“Plain Vanilla ASCII” or other form. Any alternate format must
include the full Project Gutenberg™ License as specified in
paragraph 1.E.1.
• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
1.F.4. Except for the limited right of replacement or refund set forth
in paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.
Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookultra.com