100% found this document useful (7 votes)
88 views

(eBook PDF) Starting Out with Java Early Objects 6th Edition by Tony Gaddis pdf download

The document is about the eBook 'Starting Out with Java Early Objects, 6th Edition' by Tony Gaddis, which covers fundamental concepts of Java programming. It includes links to download this and other related eBooks by the same author. The content outlines various chapters that explore topics such as classes, objects, decision structures, loops, and GUI programming.

Uploaded by

valekdicke
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (7 votes)
88 views

(eBook PDF) Starting Out with Java Early Objects 6th Edition by Tony Gaddis pdf download

The document is about the eBook 'Starting Out with Java Early Objects, 6th Edition' by Tony Gaddis, which covers fundamental concepts of Java programming. It includes links to download this and other related eBooks by the same author. The content outlines various chapters that explore topics such as classes, objects, decision structures, loops, and GUI programming.

Uploaded by

valekdicke
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 51

(eBook PDF) Starting Out with Java Early Objects

6th Edition by Tony Gaddis download

https://ebooksecure.com/product/ebook-pdf-starting-out-with-java-
early-objects-6th-edition-by-tony-gaddis/

Download more ebook from https://ebooksecure.com


We believe these products will be a great fit for you. Click
the link to download now, or visit ebooksecure.com
to discover even more!

Starting Out with C++: Early Objects 9th Edition by


Tony Gaddis (eBook PDF)

http://ebooksecure.com/product/starting-out-with-c-early-
objects-9th-edition-by-tony-gaddis-ebook-pdf/

(eBook PDF) Starting Out with Java: Early Objects 5th


Edition

http://ebooksecure.com/product/ebook-pdf-starting-out-with-java-
early-objects-5th-edition/

(eBook PDF) Starting Out with Java: Early Objects 5th


Global Edition

http://ebooksecure.com/product/ebook-pdf-starting-out-with-java-
early-objects-5th-global-edition/

Starting out with Visual C# 4th Edition by Tony Gaddis


(eBook PDF)

http://ebooksecure.com/product/starting-out-with-visual-c-4th-
edition-by-tony-gaddis-ebook-pdf/
(eBook PDF) Starting Out With Visual Basic 8th Edition
by Tony Gaddis

http://ebooksecure.com/product/ebook-pdf-starting-out-with-
visual-basic-8th-edition-by-tony-gaddis/

(eBook PDF) Starting out with Visual C# 4th Edition by


Tony Gaddis

http://ebooksecure.com/product/ebook-pdf-starting-out-with-
visual-c-4th-edition-by-tony-gaddis/

(eBook PDF) Starting Out With Visual Basic 7th Edition


by Tony Gaddis

http://ebooksecure.com/product/ebook-pdf-starting-out-with-
visual-basic-7th-edition-by-tony-gaddis/

Starting Out With Programming Logic and Design, 6e 6th


Edition Tony Gaddis - eBook PDF

https://ebooksecure.com/download/starting-out-with-programming-
logic-and-design-6e-ebook-pdf/

(eBook PDF) Starting Out with C++: Early Objects 9th


Edition

http://ebooksecure.com/product/ebook-pdf-starting-out-with-c-
early-objects-9th-edition/
Starting Out with Java™
Early Objects

Sixth Edition

Tony Gaddis

Haywood Community College

330 Hudson Street, New York, NY 10013


Senior Vice President Courseware Portfolio
Marcia J. Horton
Management:
Director, Portfolio Management: Engineering,
Julian Partridge
Computer Science & Global Editions:
Portfolio Manager: Matt Goldstein
Portfolio Management Assistant: Kristy Alaura
Field Marketing Manager: Demetrius Hall
Product Marketing Manager: Yvonne Vannatta
Managing Producer, ECS and Math: Scott Disanno
Content Producer: Sandra L. Rodriguez
Composition: iEnergizer Aptara®,
Ltd.
Cover Designer: Joyce Wells
Dimitris66/E+/Getty
Cover Photo:
Images

Copyright © 2018, 2015, 2011, 2008, 2005 Pearson Education, Inc.


Hoboken, NJ 07030. All rights reserved. Manufactured in the United States
of America. This publication is protected by copyright and permissions
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 otherwise. For
information regarding permissions, request forms and the appropriate
contacts within the Pearson Education Global Rights & Permissions
department, please visit www.pearsoned.com/permissions/.

Many of the designations by manufacturers and seller 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.

The author and publisher of this book have used their best efforts in preparing
this book. These efforts include the development, research, and testing of
theories and programs to determine their effectiveness. The author and
publisher make no warranty of any kind, expressed or implied, with regard to
these programs or the documentation contained in this book. The author and
publisher shall not be liable in any event for incidental or consequential
damages with, or arising out of, the furnishing, performance, or use of these
programs.

Pearson Education Ltd., London

Pearson Education Singapore, Pte. Ltd

Pearson Education Canada, Inc.

Pearson Education Japan

Pearson Education Australia PTY, Ltd

Pearson Education North Asia, Ltd., Hong Kong

Pearson Education de Mexico, S.A. de C.V.

Pearson Education Malaysia, Pte. Ltd.

Pearson Education, Inc., Hoboken

Library of Congress Cataloging-in-Publication Data

Names: Gaddis, Tony, author.

Title: Starting out with Java. Early objects / Tony Gaddis, Haywood
Community College.

Description: Sixth edition. | Boston : Pearson Education, Inc., [2017] |


Includes index.

Identifiers: LCCN 2016056455| ISBN 9780134462011 (alk. paper) | ISBN


0134462017 (alk. paper)

Subjects: LCSH: Java (Computer program language) | Object-oriented


programming (Computer science)
Classification: LCC QA76.73.J38 G325 2017 | DDC 005.13/3—dc23 LC
record available at https://lccn.loc.gov/2016056455

1 17

ISBN-13: 978-0-13-446201-1

ISBN-10: 0-13-446201-7
Contents in Brief
1. Preface xv

1. Chapter 1 Introduction to Computers and Java 1

2. Chapter 2 Java Fundamentals 29

3. Chapter 3 A First Look at Classes and Objects 129

4. Chapter 4 Decision Structures 193

5. Chapter 5 Loops and Files 275

6. Chapter 6 A Second Look at Classes and Objects 353

7. Chapter 7 Arrays and the ArrayList Class 445

8. Chapter 8 Text Processing and Wrapper Classes 543

9. Chapter 9 Inheritance 601

10. Chapter 10 Exceptions and Advanced File I/O 687

11. Chapter 11 JavaFX: GUI Programming and Basic Controls 745

12. Chapter 12 JavaFX: Advanced Controls 809

13. Chapter 13 JavaFX: Graphics, Effects, and Media 895

14. Chapter 14 Recursion 985

15. Chapter 15 Databases 1013

1. Appendix A The ASCII/Unicode Characters 1095

2. Appendix B Operator Precedence and Associativity 1097


3. Index 1099

4. Credits 1109

5. Appendixes C–M Available on the book’s online resource page

6. Case Studies 1–4 Available on the book’s online resource page


Contents
1. Preface xv

1. Chapter 1 Introduction to Computers and Java 1

1. 1.1 Introduction 1

2. 1.2 Why Program? 1

3. 1.3 Computer Systems: Hardware and Software 2

4. 1.4 Programming Languages 6

5. 1.5 What Is a Program Made of? 8

6. 1.6 The Programming Process 16

7. 1.7 Object-Oriented Programming 19

1. Review Questions and Exercises 24

2. Programming Challenge 28

2. Chapter 2 Java Fundamentals 29

1. 2.1 The Parts of a Java Program 29

2. 2.2 The System.out.print and System.out.println Methods,


and the Java API 35

3. 2.3 Variables and Literals 41

4. 2.4 Primitive Data Types 47

5. 2.5 Arithmetic Operators 58


6. 2.6 Combined Assignment Operators 67

7. 2.7 Conversion between Primitive Data Types 68

8. 2.8 Creating Named Constants with final 72

9. 2.9 The String Class 74

10. 2.10 Scope 80

11. 2.11 Comments 81

12. 2.12 Programming Style 85

13. 2.13 Reading Keyboard Input 87

14. 2.14 Dialog Boxes 95

15. 2.15 Displaying Formatted Output with System.out.printf and


String.format 102

16. 2.16 Common Errors to Avoid 116

1. Review Questions and Exercises 118

2. Programming Challenges 123

3. Chapter 3 A First Look at Classes and Objects 129

1. 3.1 Classes 129

2. 3.2 More about Passing Arguments 149

3. 3.3 Instance Fields and Methods 152

4. 3.4 Constructors 155

5. 3.5 A BankAccount Class 161

6. 3.6 Classes, Variables, and Scope 172


7. 3.7 Packages and import Statements 173

8. 3.8 Focus on Object-Oriented Design: Finding the Classes and


Their Responsibilities 174

9. 3.9 Common Errors to Avoid 183

1. Review Questions and Exercises 183

2. Programming Challenges 187

4. Chapter 4 Decision Structures 193

1. 4.1 The if Statement 193

2. 4.2 The if-else Statement 202

3. 4.3 The Payroll Class 205

4. 4.4 Nested if Statements 209

5. 4.5 The if-else-if Statement 217

6. 4.6 Logical Operators 222

7. 4.7 Comparing String Objects 230

8. 4.8 More about Variable Declaration and Scope 235

9. 4.9 The Conditional Operator (Optional) 237

10. 4.10 The switch Statement 238

11. 4.11 Focus on Problem Solving: The SalesCommission Class 248

12. 4.12 Generating Random Numbers with the Random Class 255

13. 4.13 Common Errors to Avoid 261

1. Review Questions and Exercises 262


2. Programming Challenges 267

5. Chapter 5 Loops and Files 275

1. 5.1 The Increment and Decrement Operators 275

2. 5.2 The while Loop 279

3. 5.3 Using the while Loop for Input Validation 286

4. 5.4 The do-while Loop 289

5. 5.5 The for Loop 292

6. 5.6 Running Totals and Sentinel Values 303

7. 5.7 Nested Loops 308

8. 5.8 The break and continue Statements 316

9. 5.9 Deciding Which Loop to Use 316

10. 5.10 Introduction to File Input and Output 317

11. 5.11 Common Errors to Avoid 337

1. Review Questions and Exercises 338

2. Programming Challenges 344

6. Chapter 6 A Second Look at Classes and Objects 353

1. 6.1 Static Class Members 353

2. 6.2 Overloaded Methods 360

3. 6.3 Overloaded Constructors 365

4. 6.4 Passing Objects as Arguments to Methods 372


5. 6.5 Returning Objects from Methods 385

6. 6.6 The toString Method 388

7. 6.7 Writing an equals Method 392

8. 6.8 Methods That Copy Objects 394

9. 6.9 Aggregation 397

10. 6.10 The this Reference Variable 410

11. 6.11 Inner Classes 413

12. 6.12 Enumerated Types 416

13. 6.13 Garbage Collection 425

14. 6.14 Focus on Object-Oriented Design: Class Collaboration 427

15. 6.15 Common Errors to Avoid 431

1. Review Questions and Exercises 432

2. Programming Challenges 437

7. Chapter 7 Arrays and the ArrayList Class 445

1. 7.1 Introduction to Arrays 445

2. 7.2 Processing Array Contents 456

3. 7.3 Passing Arrays as Arguments to Methods 468

4. 7.4 Some Useful Array Algorithms and Operations 472

5. 7.5 Returning Arrays from Methods 484

6. 7.6 String Arrays 486


7. 7.7 Arrays of Objects 490

8. 7.8 The Sequential Search Algorithm 494

9. 7.9 The Selection Sort and the Binary Search Algorithms 497

10. 7.10 Two-Dimensional Arrays 505

11. 7.11 Arrays with Three or More Dimensions 517

12. 7.12 Command-Line Arguments and Variable-Length Argument


Lists 518

13. 7.13 The ArrayList Class 522

14. 7.14 Common Errors to Avoid 530

1. Review Questions and Exercises 531

2. Programming Challenges 535

8. Chapter 8 Text Processing and Wrapper Classes 543

1. 8.1 Introduction to Wrapper Classes 543

2. 8.2 Character Testing and Conversion with the Character Class


544

3. 8.3 More about String Objects 551

4. 8.4 The StringBuilder Class 565

5. 8.5 Tokenizing Strings 574

6. 8.6 Wrapper Classes for the Numeric Data Types 583

7. 8.7 Focus on Problem Solving: The TestScoreReader Class 587

8. 8.8 Common Errors to Avoid 591


1. Review Questions and Exercises 591

2. Programming Challenges 595

9. Chapter 9 Inheritance601

1. 9.1 What Is Inheritance? 601

2. 9.2 Calling the Superclass Constructor 612

3. 9.3 Overriding Superclass Methods 620

4. 9.4 Protected Members 628

5. 9.5 Classes That Inherit from Subclasses 635

6. 9.6 The Object Class 640

7. 9.7 Polymorphism 642

8. 9.8 Abstract Classes and Abstract Methods 647

9. 9.9 Interfaces 653

10. 9.10 Anonymous Inner Classes 668

11. 9.11 Functional Interfaces and Lambda Expressions 670

12. 9.12 Common Errors to Avoid 675

1. Review Questions and Exercises 676

2. Programming Challenges 682

10. Chapter 10 Exceptions and Advanced File I/O 687

1. 10.1 Handling Exceptions 687

2. 10.2 Throwing Exceptions 710


3. 10.3 Advanced Topics: Binary Files, Random Access Files, and
Object Serialization 718

4. 10.4 Common Errors to Avoid 734

1. Review Questions and Exercises 735

2. Programming Challenges 741

11. Chapter 11 JavaFX: GUI Programming and Basic Controls 745

1. 11.1 Graphical User Interfaces 745

2. 11.2 Introduction to JavaFX 748

3. 11.3 Creating Scenes 751

4. 11.4 Displaying Images 758

5. 11.5 More about the HBox, VBox, and GridPane Layout Containers
762

6. 11.6 Button Controls and Events 778

7. 11.7 Reading Input with TextField Controls 785

8. 11.8 Using Anonymous Inner Classes and Lambda Expressions to


Handle Events 789

9. 11.9 The BorderPane Layout Container 794

10. 11.10 The ObservableList Interface 799

11. 11.11 Common Errors to Avoid 800

1. Review Questions and Exercises 800

2. Programming Challenges 804


12. Chapter 12 JavaFX: Advanced Controls 809

1. 12.1 Styling JavaFX Applications with CSS 809

2. 12.2 RadioButton Controls 824

3. 12.3 CheckBox Controls 834

4. 12.4 ListView Controls 839

5. 12.5 ComboBox Controls 860

6. 12.6 Slider Controls 866

7. 12.7 TextArea Controls 871

8. 12.8 Menus 873

9. 12.9 The FileChooser Class 883

10. 12.10 Using Console Output to Debug a GUI Application 884

11. 12.11 Common Errors to Avoid 888

1. Review Questions 888

2. Programming Challenges 892

13. Chapter 13 JavaFX: Graphics, Effects, and Media 895

1. 13.1 Drawing Shapes 895

2. 13.2 Animation 926

3. 13.3 Effects 944

4. 13.4 Playing Sound Files 955

5. 13.5 Playing Videos 960


6. 13.6 Handling Key Events 965

7. 13.7 Handling Mouse Events 972

8. 13.8 Common Errors to Avoid 978

1. Review Questions 978

2. Programming Challenges 981

14. Chapter 14 Recursion 985

1. 14.1 Introduction to Recursion 985

2. 14.2 Solving Problems with Recursion 988

3. 14.3 Examples of Recursive Methods 992

4. 14.4 A Recursive Binary Search Method 999

5. 14.5 The Towers of Hanoi 1002

6. 14.6 Common Errors to Avoid 1006

1. Review Questions and Exercises 1007

2. Programming Challenges 1009

15. Chapter 15 Databases 1013

1. 15.1 Introduction to Database Management Systems 1013

2. 15.2 Tables, Rows, and Columns 1019

3. 15.3 Introduction to the SQL SELECT Statement 1023

4. 15.4 Inserting Rows 1044

5. 15.5 Updating and Deleting Existing Rows 1047


6. 15.6 Creating and Deleting Tables 1056

7. 15.7 Creating a New Database with JDBC 1060

8. 15.8 Scrollable Result Sets 1061

9. 15.9 Result Set Metadata 1063

10. 15.10 Relational Data 1069

11. 15.11 Advanced Topics 1084

12. 15.12 Common Errors to Avoid 1086

1. Review Questions and Exercises 1087

2. Programming Challenges 1092

1. Appendix A The ASCII/Unicode Characters 1095

2. Appendix B Operator Precedence and Associativity 1097

3. Index 1099

4. Credits 1109

5. Available on the Computer Science Portal at


www.pearsonhighered.com/gaddis:

6. Appendix C Java Key Words

7. Appendix D Installing the JDK and Using the JDK Documentation

8. Appendix E Using the javadoc Utility

9. Appendix F More about the Math Class

10. Appendix G Packages

11. Appendix H Working with Records and Random-Access Files


12. Appendix I Configuring Java DB

13. Appendix J The QuickSort Algorithm

14. Appendix K Named Colors

15. Appendix L Answers to Checkpoints Questions

16. Appendix M Answers to Odd-Numbered Review Questions

17. Case Study 1 The Amortization Class

18. Case Study 2 The PinTester Class

19. Case Study 3 Parallel Arrays

20. Case Study 4 The SerialNumber Class


Discovering Diverse Content Through
Random Scribd Documents
DIDUS SOLITARIUS
(One-Third Natural Size—from a Dutch picture taken from living bird in Amsterdam, beak
and wing restored)

Plate 25a

DIDUS SOLITARIUS
(One-Third Natural Size—from Dubois' description)

Plate 25b
Fig. 1, 2, 3. PEZOPHAPS SOLITARIA
Fig. 4, 5, 7, 8. DIDUS SOLITARIUS

Plate 26

1. HYPOTAENIDIA 2. PENNULA 3. PENNULA


PACIFICA SANDWICHENSIS MILLSI
(Two-Thirds Natural Size—from (Three-Fifths Natural Size— (Three-Fifths
Forster's drawing in British from skin) Natural Size—from
Museum) skin)
Plate 27

NESOLIMNAS DIEFFENBACHI
(Seven-Eighths Natural Size)

Plate 28

1. CABALUS MODESTUS 2. COTURNIX NOVAEZEALANDIAE


(Natural Size) (Seven-Eighths Natural Size)

Plate 29
APHANAPTERYX BONASIA
(One-Half Natural Size—from a drawing)

Plate 30

ERYTHROMACHUS LEGUATI
(One-Half Natural Size—from a description and a tracing)

Plate 31
LEGUATIA GIGANTEA
(One-Sixth Natural Size—from description and drawings)

Plate 32

APTERORNIS COERULESCENS
(One-Half Natural Size—from descriptions)
Plate 33

NOTORNIS ALBA
(Five-Nineths Natural Size)

Plate 34

NOTORNIS HOCHSTETTERI
(One-Half Natural Size)
Plate 35

1. AECHMORHYNCHUS 2. PROSOBONIA
CANCELLATUS LEUCOPTERA
(Natural Size) (Natural Size)

Plate 36

CAMPTOLAEMUS LABRADORIUS
(One-Half Natural Size—from Nature)
Plate 37

AESTRELATA CARIBBAEA
(Five-Sixths Natural Size—from stuffed specimen in Dublin Museum)

Plate 38

ALCA IMPENNIS
(Five-Eighths Natural Size—from stuffed specimen)
Plate 39

CARBO PERSPICILLATUS
(Seven-Sixteenths Natural Size)

Plate 40

DROMAIUS PERONI
(One-Third Natural Size—from type specimen)
Plate 41

MEGALAPTERYX HUTTONI
(One-Quarter Natural Size—restored drawing from feathers and mummified remains)

Plate 42
DINORNIS INGENS
(One-Eleventh Natural Size—restoration from skeleton and feathers)

NOTES
[1] "Psittacus brachyurus fuscus, facie nigra, cauda albente.
Habitat in Mascarina. Rostrum incarnatum. Caput
caerulescens."
[2] See Findlay's South Pacific Ocean Directory, p. 642.
[3] Ibis 1862, p. 214.
[4] Proceedings of the Delaware Valley Ornithological Club,
II, 1898, 17.
[5] Wintle, Birds of Montreal, 1896, 51.
[6] In collection of Dr. J. Dwight, Jr.
[7] Minot, Birds of New England, 1895, 395.
[8] Auk, XX, 1903, 66.
Corrections made to printed original.
Page xvii, entry 1674. In "et Bourbon", the original ampersand in the
title of the French work was incongruously expanded to "and" in the
present work. So also in the same title on Pages 3 & 64, an on page
xviii, entry 1773, in "et sur les hommes".
Page xvii, entry 1707:—"Compagnons", printed as "Compagnos" in
original.
Page xviii, entry 1782 at "aux iles orientales":—"aux", printed as
"aus" in original.
Page xix, entry 1830 (also on p. 184 and Plate 28). "Coturnix
novaezealandiae" retained as printed, but the correct spelling is
"novaezelandiae" as printed in the species heading.
Page xx, entry 1861:—"1861", printed as "1681" in original.
Page xx, entry 1868 (Millies):—"Verhandelingen", printed as
"Verhandlingen" in original.
Page xxv, entry 1896 (Hartlaub) in "Ein Beitrag":—"Ein", printed as
"En" in original.
Page xxv, entry 1902 (Henshaw):—first occurence of "Hawaiian"
printed as "Hawaian" in original.
Page 3, in "Dauphine ou Madagascar":—"ou", printed as "on" in
original.
Page 15, in "disappeared from Warekauri":—"disappeared", printed
as "disapppeared" in original.
Page 64, in "identified by himself with the Mascarine Parrot":
—"Mascarine", printed as "Marcarine" in original.
Page 74. "13½ inches = 345 mm": this seems the most likely
intention of the erroneous conversion "13½ inches = 365 mm" of
the original.
Page 112-3, table. Width at distal extremity "13.5" printed "0135".
Four other entries similarly.
Page 144, date for "Porphyrio melanotus var. alba":—"1844", printed
as "1144" in original.
Page 167, authors for "Columba migratoria":—"Audubon", printed as
"Andubon" in original.
Page 188, in "cervical vertebrae":—"cervical", printed as "cervicle" in
original.
Page 191, in "profile of the inner condyle":—"condyle", printed as
"cordyle" in original.
Page 215. "228 mm. = 8.9 inches": this seems the most likely
intention of the erroneous conversion "228 mm. = 9.9 inches" of the
original.
Page 216, in "24 to 24.1":—"24.1", printed as "21-1" in original.
Page 217, synonymy of "Pachyornis pygmaeus":—"Euryapteryx",
printed as "Euryapterxy" in original.
Page 237, Tarso-metatarsus upper limit:—"287", printed as "277" in
original.
*** END OF THE PROJECT GUTENBERG EBOOK EXTINCT BIRDS
***

Updated editions will replace the previous one—the old editions


will be renamed.

Creating the works from print editions not protected by U.S.


copyright law means that no one owns a United States
copyright in these works, so the Foundation (and you!) can copy
and distribute it in the United States without permission and
without paying copyright royalties. Special rules, set forth in the
General Terms of Use part of this license, apply to copying and
distributing Project Gutenberg™ electronic works to protect the
PROJECT GUTENBERG™ concept and trademark. Project
Gutenberg is a registered trademark, and may not be used if
you charge for an eBook, except by following the terms of the
trademark license, including paying royalties for use of the
Project Gutenberg trademark. If you do not charge anything for
copies of this eBook, complying with the trademark license is
very easy. You may use this eBook for nearly any purpose such
as creation of derivative works, reports, performances and
research. Project Gutenberg eBooks may be modified and
printed and given away—you may do practically ANYTHING in
the United States with eBooks not protected by U.S. copyright
law. Redistribution is subject to the trademark license, especially
commercial redistribution.

START: FULL LICENSE


THE FULL PROJECT GUTENBERG LICENSE
PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK

To protect the Project Gutenberg™ mission of promoting the


free distribution of electronic works, by using or distributing this
work (or any other work associated in any way with the phrase
“Project Gutenberg”), you agree to comply with all the terms of
the Full Project Gutenberg™ License available with this file or
online at www.gutenberg.org/license.

Section 1. General Terms of Use and


Redistributing Project Gutenberg™
electronic works
1.A. By reading or using any part of this Project Gutenberg™
electronic work, you indicate that you have read, understand,
agree to and accept all the terms of this license and intellectual
property (trademark/copyright) agreement. If you do not agree
to abide by all the terms of this agreement, you must cease
using and return or destroy all copies of Project Gutenberg™
electronic works in your possession. If you paid a fee for
obtaining a copy of or access to a Project Gutenberg™
electronic work and you do not agree to be bound by the terms
of this agreement, you may obtain a refund from the person or
entity to whom you paid the fee as set forth in paragraph 1.E.8.

1.B. “Project Gutenberg” is a registered trademark. It may only


be used on or associated in any way with an electronic work by
people who agree to be bound by the terms of this agreement.
There are a few things that you can do with most Project
Gutenberg™ electronic works even without complying with the
full terms of this agreement. See paragraph 1.C below. There
are a lot of things you can do with Project Gutenberg™
electronic works if you follow the terms of this agreement and
help preserve free future access to Project Gutenberg™
electronic works. See paragraph 1.E below.
1.C. The Project Gutenberg Literary Archive Foundation (“the
Foundation” or PGLAF), owns a compilation copyright in the
collection of Project Gutenberg™ electronic works. Nearly all the
individual works in the collection are in the public domain in the
United States. If an individual work is unprotected by copyright
law in the United States and you are located in the United
States, we do not claim a right to prevent you from copying,
distributing, performing, displaying or creating derivative works
based on the work as long as all references to Project
Gutenberg are removed. Of course, we hope that you will
support the Project Gutenberg™ mission of promoting free
access to electronic works by freely sharing Project Gutenberg™
works in compliance with the terms of this agreement for
keeping the Project Gutenberg™ name associated with the
work. You can easily comply with the terms of this agreement
by keeping this work in the same format with its attached full
Project Gutenberg™ License when you share it without charge
with others.

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. Unless you have removed all references to Project


Gutenberg:

1.E.1. The following sentence, with active links to, or other


immediate access to, the full Project Gutenberg™ License must
appear prominently whenever any copy of a Project
Gutenberg™ work (any work on which the phrase “Project
Gutenberg” appears, or with which the phrase “Project
Gutenberg” is associated) is accessed, displayed, performed,
viewed, copied or distributed:

This eBook is for the use of anyone anywhere in the United


States and most other parts of the world at no cost and
with almost no restrictions whatsoever. You may copy it,
give it away or re-use it under the terms of the Project
Gutenberg License included with this eBook or online at
www.gutenberg.org. If you are not located in the United
States, you will have to check the laws of the country
where you are located before using this eBook.

1.E.2. If an individual Project Gutenberg™ electronic work is


derived from texts not protected by U.S. copyright law (does not
contain a notice indicating that it is posted with permission of
the copyright holder), the work can be copied and distributed to
anyone in the United States without paying any fees or charges.
If you are redistributing or providing access to a work with the
phrase “Project Gutenberg” associated with or appearing on the
work, you must comply either with the requirements of
paragraphs 1.E.1 through 1.E.7 or obtain permission for the use
of the work and the Project Gutenberg™ trademark as set forth
in paragraphs 1.E.8 or 1.E.9.

1.E.3. If an individual Project Gutenberg™ electronic work is


posted with the permission of the copyright holder, your use and
distribution must comply with both paragraphs 1.E.1 through
1.E.7 and any additional terms imposed by the copyright holder.
Additional terms will be linked to the Project Gutenberg™
License for all works posted with the permission of the copyright
holder found at the beginning of this work.

1.E.4. Do not unlink or detach or remove the full Project


Gutenberg™ License terms from this work, or any files
containing a part of this work or any other work associated with
Project Gutenberg™.

1.E.5. Do not copy, display, perform, distribute or redistribute


this electronic work, or any part of this electronic work, without
prominently displaying the sentence set forth in paragraph 1.E.1
with active links or immediate access to the full terms of the
Project Gutenberg™ License.

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.

1.E.7. Do not charge a fee for access to, viewing, displaying,


performing, copying or distributing any Project Gutenberg™
works unless you comply with paragraph 1.E.8 or 1.E.9.

1.E.8. You may charge a reasonable fee for copies of or


providing access to or distributing Project Gutenberg™
electronic works provided that:

• 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 provide a full refund of any money paid by a user who


notifies you in writing (or by e-mail) within 30 days of receipt
that s/he does not agree to the terms of the full Project
Gutenberg™ License. You must require such a user to return or
destroy all copies of the works possessed in a physical medium
and discontinue all use of and all access to other copies of
Project Gutenberg™ works.

• You provide, in accordance with paragraph 1.F.3, a full refund of


any money paid for a work or a replacement copy, if a defect in
the electronic work is discovered and reported to you within 90
days of receipt of the work.

• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.

1.E.9. If you wish to charge a fee or distribute a Project


Gutenberg™ electronic work or group of works on different
terms than are set forth in this agreement, you must obtain
permission in writing from the Project Gutenberg Literary
Archive Foundation, the manager of the Project Gutenberg™
trademark. Contact the Foundation as set forth in Section 3
below.

1.F.

1.F.1. Project Gutenberg volunteers and employees expend


considerable effort to identify, do copyright research on,
transcribe and proofread works not protected by U.S. copyright
law in creating the Project Gutenberg™ collection. Despite these
efforts, Project Gutenberg™ electronic works, and the medium
on which they may be stored, may contain “Defects,” such as,
but not limited to, incomplete, inaccurate or corrupt data,
transcription errors, a copyright or other intellectual property
infringement, a defective or damaged disk or other medium, a
computer virus, or computer codes that damage or cannot be
read by your equipment.

1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except


for the “Right of Replacement or Refund” described in
paragraph 1.F.3, the Project Gutenberg Literary Archive
Foundation, the owner of the Project Gutenberg™ trademark,
and any other party distributing a Project Gutenberg™ electronic
work under this agreement, disclaim all liability to you for
damages, costs and expenses, including legal fees. YOU AGREE
THAT YOU HAVE NO REMEDIES FOR NEGLIGENCE, STRICT
LIABILITY, BREACH OF WARRANTY OR BREACH OF CONTRACT
EXCEPT THOSE PROVIDED IN PARAGRAPH 1.F.3. YOU AGREE
THAT THE FOUNDATION, THE TRADEMARK OWNER, AND ANY
DISTRIBUTOR UNDER THIS AGREEMENT WILL NOT BE LIABLE
TO YOU FOR ACTUAL, DIRECT, INDIRECT, CONSEQUENTIAL,
PUNITIVE OR INCIDENTAL DAMAGES EVEN IF YOU GIVE
NOTICE OF THE POSSIBILITY OF SUCH DAMAGE.

1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you


discover a defect in this electronic work within 90 days of
receiving it, you can receive a refund of the money (if any) you
paid for it by sending a written explanation to the person you
received the work from. If you received the work on a physical
medium, you must return the medium with your written
explanation. The person or entity that provided you with the
defective work may elect to provide a replacement copy in lieu
of a refund. If you received the work electronically, the person
or entity providing it to you may choose to give you a second
opportunity to receive the work electronically in lieu of a refund.
If the second copy is also defective, you may demand a refund
in writing without further opportunities to fix the problem.

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.

1.F.5. Some states do not allow disclaimers of certain implied


warranties or the exclusion or limitation of certain types of
damages. If any disclaimer or limitation set forth in this
agreement violates the law of the state applicable to this
agreement, the agreement shall be interpreted to make the
maximum disclaimer or limitation permitted by the applicable
state law. The invalidity or unenforceability of any provision of
this agreement shall not void the remaining provisions.

1.F.6. INDEMNITY - You agree to indemnify and hold the


Foundation, the trademark owner, any agent or employee of the
Foundation, anyone providing copies of Project Gutenberg™
electronic works in accordance with this agreement, and any
volunteers associated with the production, promotion and
distribution of Project Gutenberg™ electronic works, harmless
from all liability, costs and expenses, including legal fees, that
arise directly or indirectly from any of the following which you
do or cause to occur: (a) distribution of this or any Project
Gutenberg™ work, (b) alteration, modification, or additions or
deletions to any Project Gutenberg™ work, and (c) any Defect
you cause.

Section 2. Information about the Mission


of Project Gutenberg™
Project Gutenberg™ is synonymous with the free distribution of
electronic works in formats readable by the widest variety of
computers including obsolete, old, middle-aged and new
computers. It exists because of the efforts of hundreds of
volunteers and donations from people in all walks of life.

Volunteers and financial support to provide volunteers with the


assistance they need are critical to reaching Project
Gutenberg™’s goals and ensuring that the Project Gutenberg™
collection will remain freely available for generations to come. In
2001, the Project Gutenberg Literary Archive Foundation was
created to provide a secure and permanent future for Project
Gutenberg™ and future generations. To learn more about the
Project Gutenberg Literary Archive Foundation and how your
efforts and donations can help, see Sections 3 and 4 and the
Foundation information page at www.gutenberg.org.

Section 3. Information about the Project


Gutenberg Literary Archive Foundation
The Project Gutenberg Literary Archive Foundation is a non-
profit 501(c)(3) educational corporation organized under the
laws of the state of Mississippi and granted tax exempt status
by the Internal Revenue Service. The Foundation’s EIN or
federal tax identification number is 64-6221541. Contributions
to the Project Gutenberg Literary Archive Foundation are tax
deductible to the full extent permitted by U.S. federal laws and
your state’s laws.

The Foundation’s business office is located at 809 North 1500


West, Salt Lake City, UT 84116, (801) 596-1887. Email contact
links and up to date contact information can be found at the
Foundation’s website and official page at
www.gutenberg.org/contact
Section 4. Information about Donations to
the Project Gutenberg Literary Archive
Foundation
Project Gutenberg™ depends upon and cannot survive without
widespread public support and donations to carry out its mission
of increasing the number of public domain and licensed works
that can be freely distributed in machine-readable form
accessible by the widest array of equipment including outdated
equipment. Many small donations ($1 to $5,000) are particularly
important to maintaining tax exempt status with the IRS.

The Foundation is committed to complying with the laws


regulating charities and charitable donations in all 50 states of
the United States. Compliance requirements are not uniform
and it takes a considerable effort, much paperwork and many
fees to meet and keep up with these requirements. We do not
solicit donations in locations where we have not received written
confirmation of compliance. To SEND DONATIONS or determine
the status of compliance for any particular state visit
www.gutenberg.org/donate.

While we cannot and do not solicit contributions from states


where we have not met the solicitation requirements, we know
of no prohibition against accepting unsolicited donations from
donors in such states who approach us with offers to donate.

International donations are gratefully accepted, but we cannot


make any statements concerning tax treatment of donations
received from outside the United States. U.S. laws alone swamp
our small staff.

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.

Section 5. General Information About


Project Gutenberg™ electronic works
Professor Michael S. Hart was the originator of the Project
Gutenberg™ concept of a library of electronic works that could
be freely shared with anyone. For forty years, he produced and
distributed Project Gutenberg™ eBooks with only a loose
network of volunteer support.

Project Gutenberg™ eBooks are often created from several


printed editions, all of which are confirmed as not protected by
copyright in the U.S. unless a copyright notice is included. Thus,
we do not necessarily keep eBooks in compliance with any
particular paper edition.

Most people start at our website which has the main PG search
facility: www.gutenberg.org.

This website includes information about Project Gutenberg™,


including how to make donations to the Project Gutenberg
Literary Archive Foundation, how to help produce our new
eBooks, and how to subscribe to our email newsletter to hear
about new eBooks.
back
Welcome to Our Bookstore - The Ultimate Destination for Book Lovers
Are you passionate about testbank and eager to explore new worlds of
knowledge? At our website, we offer a vast collection of books that
cater to every interest and age group. From classic literature to
specialized publications, self-help books, and children’s stories, we
have it all! Each book is a gateway to new adventures, helping you
expand your knowledge and nourish your soul
Experience Convenient and Enjoyable Book Shopping Our website is more
than just an online bookstore—it’s a bridge connecting readers to the
timeless values of culture and wisdom. With a sleek and user-friendly
interface and a smart search system, you can find your favorite books
quickly and easily. Enjoy special promotions, fast home delivery, and
a seamless shopping experience that saves you time and enhances your
love for reading.
Let us accompany you on the journey of exploring knowledge and
personal growth!

ebooksecure.com

You might also like