Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
100% found this document useful (22 votes)
54 views

Full Download of Solution Manual for PHP Programming with MySQL The Web Technologies Series, 2nd Edition in PDF DOCX Format

Solution

Uploaded by

kenyophanu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (22 votes)
54 views

Full Download of Solution Manual for PHP Programming with MySQL The Web Technologies Series, 2nd Edition in PDF DOCX Format

Solution

Uploaded by

kenyophanu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 33

Visit https://testbankmall.

com to download the full version and


explore more testbank or solution manual

Solution Manual for PHP Programming with MySQL The


Web Technologies Series, 2nd Edition

_____ Click the link below to download _____


https://testbankmall.com/product/solution-manual-for-
php-programming-with-mysql-the-web-technologies-
series-2nd-edition/

Explore and download more testbank at testbankmall


Recommended digital products (PDF, EPUB, MOBI) that
you can download immediately if you are interested.

Test Bank for PHP Programming with MySQL The Web


Technologies Series, 2nd Edition

https://testbankmall.com/product/test-bank-for-php-programming-with-
mysql-the-web-technologies-series-2nd-edition/

testbankmall.com

Solution Manual for Introduction to JavaScript Programming


with XML and PHP : 0133068307

https://testbankmall.com/product/solution-manual-for-introduction-to-
javascript-programming-with-xml-and-php-0133068307/

testbankmall.com

Test Bank for Introduction to JavaScript Programming with


XML and PHP : 0133068307

https://testbankmall.com/product/test-bank-for-introduction-to-
javascript-programming-with-xml-and-php-0133068307/

testbankmall.com

Applied Calculus for the Managerial Life and Social


Sciences A Brief Approach 10th Edition Tan Solutions
Manual
https://testbankmall.com/product/applied-calculus-for-the-managerial-
life-and-social-sciences-a-brief-approach-10th-edition-tan-solutions-
manual/
testbankmall.com
Fundamentals of Anatomy and Physiology 10th Edition
Martini Solutions Manual

https://testbankmall.com/product/fundamentals-of-anatomy-and-
physiology-10th-edition-martini-solutions-manual/

testbankmall.com

Cost Accounting – A Managerial Emphasis Horngren 13th


Edition Test Bank

https://testbankmall.com/product/cost-accounting-a-managerial-
emphasis-horngren-13th-edition-test-bank/

testbankmall.com

Test Bank for The Human Body in Health and Disease 7th
Edition by Patton

https://testbankmall.com/product/test-bank-for-the-human-body-in-
health-and-disease-7th-edition-by-patton/

testbankmall.com

Advanced Accounting Fischer 10th Edition Solutions Manual

https://testbankmall.com/product/advanced-accounting-fischer-10th-
edition-solutions-manual/

testbankmall.com

Solution Manual for Strategic Management: Theory and


Practice, 3rd Edition, John A. Parnell, ISBN-10:
142662882X, ISBN-13: 9781426628825
https://testbankmall.com/product/solution-manual-for-strategic-
management-theory-and-practice-3rd-edition-john-a-parnell-
isbn-10-142662882x-isbn-13-9781426628825/
testbankmall.com
Solution Manual for Fundamentals of Financial Management,
15th Edition, Eugene F. Brigham Joel F. Houston

https://testbankmall.com/product/solution-manual-for-fundamentals-of-
financial-management-15th-edition-eugene-f-brigham-joel-f-houston/

testbankmall.com
PHP Programming with MySQL, 2nd Edition 2-2

Lecture Notes

Chapter Overview
In this chapter, students will study how to use functions to organize their PHP code. They will
also learn about variable scope, nested control structures, and conditional coding: if, if…else,
and switch statements and while, do…while, for, and foreach looping statements.
Students will also be introduced to the include and require statements.

Chapter Objectives
In this chapter, students will:

 Study how to use functions to organize your PHP code


 Learn about variable scope
 Make decisions using if, if…else, and switch statements
 Repeatedly execute code using while, do…while, for, and foreach statements
 Learn about include and require statements

Instructor Notes
In PHP, groups of statements that you can execute as a single unit are called functions. Functions
are often made up of decision-making and looping statements. These are two of the most
fundamental statements that execute in a program.

Mention to your students that functions are like paragraphs in writing


Teaching language. Remember a paragraph is a group of related sentences that make up
Tip one idea. A function is a group of related statements that make up a single task.

Working with Functions


PHP has two types of functions: built–in (internal) and user-defined (custom) functions. PHP has
over 1000 built-in library functions that can be used without declaring them. You can also your
own user-defined functions to perform specific tasks.
PHP Programming with MySQL, 2nd Edition 2-3

Defining Functions

To begin writing a function, you first need to define it. The syntax for the function definition is:

function name of _function(parameters) {


statements;
}

Parameters are placed within the parentheses that follow the function name. The parameter
receives its value when the function is called. When you name a variable within parentheses, you
do not need to explicitly declare and initialize the parameter as you do with a regular variable.

Following the parentheses that contain the function parameters is a set of curly braces, called
function braces, which contain the function statements. Function statements are the statements
that do the actual work of the function and must be contained within the function braces. For
example:

function displayCompanyName($Company1) {

echo "<p>$Company1</p>";
}

Remind your students that functions, like all PHP code, must be contained with
<?php...?> tags. Stress that the function name should be descriptive of the
task that the function will perform.

Ask students to add this to their list of PHP “Best Coding Practices.”

Teaching Illustrate to students that in a function:


Tip  There is no space between the function name and the opening parentheses
 The opening curly brace is on the same line as the function name
 The function statements are indented five spaces
 The closing curly brace is on a separate line

Ask students to add this to their list of PHP “Best Coding Practices.”
PHP Programming with MySQL, 2nd Edition 2-4

Calling Functions

A function definition does not execute automatically. Creating a function definition only names
the function, specifies its parameters (if any), and organizes the statements it will execute.

Teaching Refer to the textbook example on page 77, which defines a function and calls it
Tip passing a literal value to the function argument.

Returning Values

Some functions return a value, which may be displayed or passed as an argument to another
function. A calculator function is a good example of a return value function. A return statement
is a statement that returns a value to the statement that called the function.

Use the textbook example on page 78 to illustrate how a calling statement calls a
Teaching function and sends the multiple values as arguments of the function. The
Tip function then performs a calculation and returns the value to the calling
statement.

Passing Parameters by Reference

Usually, the value of a variable is passed as the parameter of a function, which means that a local
copy of the variable is created to be used by the function. When the value is returned to the
calling statement, any changes are lost. If you want the function to change the value of the
parameter, you must pass the value by reference, so the function works on the actual value
instead of a copy. Any changes made by the function statements remain after the function ends.

Use the textbook example on pages 80 and 81 to illustrate the difference of


passing a parameter by value or by reference.

Teaching Explain to students that a function definition should be placed above any calling
Tip statements. As of PHP4, this is not required, but is considered a good
programming practice.

Ask students to add this to their list of PHP “Best Coding Practices.”
PHP Programming with MySQL, 2nd Edition 2-5

Understanding Variable Scope

When you use a variable in a PHP program, you need to be aware of the variable's scope—that
is, you need to think about where in your program a declared variable can be used. A variable's
scope can be either global or local. Global variables are declared outside a function and are
available to all parts of the programs. Local variables are declared inside a function and are only
available within the function in which they are declared.

The global Keyword

Unlike many programming languages that make global variables automatically available to all
parts of your program, in PHP, you must declare a global variable with the global keyword
inside a function for the variable to be available within the scope of that function. When you
declare a global variable with the global keyword, you do not need to assign a value, as you
do when you declare a standard variable. Instead, within the declaration statement you only need
to include the global keyword along with the name of the variable, as in:

global $variable_name;

Teaching Demonstrate the syntax of declaring a global variable within a function using the
Tip textbook example on page 83.

Quick Quiz 1

1. In PHP, groups of statements that you can execute as a single unit are called
_________________________.
ANSWER: functions

2. A _________________________ is a statement that returns a value to the statement that


called the function.
ANSWER: return statement

3. _________________________ are declared inside a function and are only available


within the function in which they are declared.
ANSWER: Local variables

4. A _________________________is a variable that is declared outside a function and is


available to all parts of your program.
ANSWER: global variable
PHP Programming with MySQL, 2nd Edition 2-6

Making Decisions
In any programming language, the process of determining the order in which statements execute
in the program is called decision making or flow control. The special types of PHP statements
used for making decision are called decision-making statements or control structures.

if Statements

The if statement is used to execute specific programming code if the evaluation of a


conditional expression returns a value of TRUE. The syntax for a simple if statement is as
follows:

if (conditional expression)// condition evaluates to 'TRUE'


statement;

You should insert a space after the conditional keyword if before the opening
parenthesis of the conditional expression. This will help you see a visual
difference between a structure and a function. Using a line break and
indentation to enter the statements to execute makes it easier for the
programmer to follow the flow of the code.

Ask students to add the space and indentation to their list of PHP “Best Coding
Teaching Practices.”
Tip
Explain to students that if there is only one statement, they do not need to use
curly braces. If there are multiple statements, the statements should be
enclosed within beginning and ending curly braces. ({...}).

Ask students to add the use of curly braces to their list of PHP “Best Coding
Practices.”

You can use a command block to construct a decision-making structure using multiple if
statements. A command block is a group of statements contained within a set of braces, similar to
the way function statements are contained within a set of braces. When an if statement
evaluates to TRUE, the statements in the command block execute.

if...else Statements

Should you want to execute one set of statements when the condition evaluates to FALSE, and
another set of statements when the condition evaluates to TRUE, you need to add an else
clause to the if statement.
PHP Programming with MySQL, 2nd Edition 2-7

if (conditional expression) {
statements; //condition evaluates to 'TRUE'
}
else {
statements; //condition evaluates to 'FALSE'
}

Nested if and if...else Statements

When one decision-making statement is contained within another decision-making statement,


they are referred to as nested decision-making structures. An if statement contained within an
if statement or within an if...else statement is called a nested if statement. Similarly, an
if...else statement contained within an if or if…else statement is called a nested
if...else statement. You use nested if and if...else statements to perform conditional
evaluation that must be executed after the original conditional evaluation.

switch Statements

The switch statement controls program flow by executing a specific set of statements,
depending on the value of the expression. The switch statement compares the value of an
expression to a value contained within a special statement called a case label. A case label
represents a specific value and contains one or more statements that execute if the value of the
case label matches the value of the switch statement’s expression. The syntax for the switch
statement is a follows:
PHP Programming with MySQL, 2nd Edition 2-8

switch (expression) {
case label:
statement(s);
break;
case label:
statement(s);
break;
...
default:
statement(s);
break;
}

Another type of label used within switch statements is the default label. The default
label contains statements that execute when the value returned by the switch statement does
not match a case label. A default label consists of the keyword default followed by a
colon. In a switch statement, execution does not automatically end when a matching label is
found. A break statement is used to exit a control structures before it reaches the closing brace
(}). A break statement is also used to exit while, do...while, and for looping
statements.

The break statement after the default case is optional; however, it is good
Teaching programming practice to include it.
Tip
Ask the students to add this to their list of PHP “Best Coding Practices.”
PHP Programming with MySQL, 2nd Edition 2-9

Quick Quiz 2

1. The process of determining the order in which statements execute in a program is called
_________________________.
ANSWER: decision-making or flow control

2. When one decision-making statement is contained within another decision-making


statement, they are referred to as _________________________.
ANSWER: nested decision-making structures

3. The _________________________ statement is used to execute specific programming


code if the evaluation of a conditional expression returns a value of TRUE.
ANSWER: if

4. The _________________________ statement controls program flow by executing a


specific set of statements, depending on the value of the expression.
ANSWER: switch

Repeating Code

Conditional statements allow you select only a single branch of code to execute and then
continue to the statement that follows. If you need to perform the same statement more than
once, however, you need a use a loop statement, a control structure that repeatedly executes a
statement or a series of statements while a specific condition is TRUE or until a specific
condition becomes TRUE. In an infinite loop, a loop statement never ends because its conditional
expression is never FALSE.

while Statements

The while statement is a simple loop statement that repeats a statement or series of statements
as long as a given conditional expression evaluates to TRUE. The syntax for the while statement
is as follows:

while (conditional expression) {


statement(s);
}

Each repetition of a looping statement is called an iteration. The loop ends and the next
statement, following the while statement executes only when the conditional statement
evaluates to FALSE. You normally track the progress of the while statement evaluation, or
any other loop, with a counter. A counter is a variable that increments or decrements with each
iteration of a loop statement.
PHP Programming with MySQL, 2nd Edition 2-10

Programmers often name counter variables $Count, $Counter, or


something descriptive of its purpose. The letters i, j, k, l, x, y, z are also
Teaching commonly used as counter names. Using a variable name such as count or the
Tip letter i (for iteration) helps you remember (and informs other programmers)
that the variable is being used as a counter.

do...while Statements

The do...while statement executes a statement or statements once, then repeats the execution
as long as a given conditional expression evaluates to TRUE The syntax for the do...while
statement is as follows:

do {
statements(s);
} while (conditional expression);

for Statements

The for statement is used for repeating a statement or series of statements as long as a given
conditional expression evaluates to TRUE. The syntax of the for statement is as follows:

for (counter declaration and initialization; condition;


update statement) {
statement(s);
}

foreach Statements

The foreach statement is used to iterate or loop through the elements in an array. With each
loop, a foreach statement moves to the next element in an array. The basic syntax of the
foreach statement is as follows:

foreach ($array_name as $variable_name) {


statement(s);
}
PHP Programming with MySQL, 2nd Edition 2-11

Most of the conditional statements (such as the if, if...else, while,


do...while, and for) are probably familiar to students, but the foreach
Teaching statement, which iterates through elements of an array may not be as familiar.
Tip
Illustrate the syntax of the foreach statement using the basic and advanced
forms shown on pages 105 – 107 of the textbook.

Quick Quiz 3

1. Each repetition of a looping statement is called a(n) _________________________.


ANSWER: iteration

2. A _________________________ is a variable that increments or decrements with each


iteration of a loop statement.
ANSWER: counter

3. The foreach statement is used to iterate or loop through the elements in a(n)
_________________________.
ANSWER: array

Discussion Questions
 When is it better to use a global variable in programming? When is it better to use a local
variable?

 Why are conditional statements important in programming?

 Explain the difference between a while statement and a do…while statement.


Visit https://testbankmall.com
now to explore a rich
collection of testbank,
solution manual and enjoy
exciting offers!
PHP Programming with MySQL, 2nd Edition 2-12

Key Terms
 break statement: Used to exit control structures.
 case label: In a switch statement, represents a specific value and contains one or more
statements that execute if the value of the case label matches the value of the switch
statement’s expression.
 command block: A group of statements contained within a set of braces, similar to the way
function statements are contained within a set of braces.
 counter: A variable that increments or decrements with each iteration of a loop statement.
 decision making (or flow control): The process of determining the order in which
statements execute in a program.
 default label: Contains statements that execute when the value returned by the switch
statement expression does not match a case label.
 do…while statement: Executes a statement or statements once, then repeats the execution
as long as a given conditional expression evaluates to TRUE.
 for statement: Used for repeating a statement or series of statements as long as a given
conditional expression evaluates to TRUE.
 function definition: Line of code that make up a function.
 functions: Groups of statements that execute as a single unit.
 global variable: A variable declared outside a function and available to all parts of the
program.
 if statement: Used to execute specific programming code if the evaluation of a conditional
expression returns a value of TRUE.
 if…else statement: if statement with an else clause that is implemented when the
condition returns a value of FALSE.
 infinite loop: A loop statement never ends because its exit condition is never met.
 iteration: The repetition of a looping statement.
 local variable: A variable declared inside a function and only available with the function in
which it is declared.
 loop statement: A control structure that repeatedly executes a statement or a series of
statements while a specific condition is TRUE or until a specific condition becomes TRUE.
 nested decision-making structures: One decision-making statement contained within
another decision-making statement.
 parameter: A variable that is passed to a function from the calling statement.
 return statement: A statement that returns a value to the statement that called the function.
 switch statement: Controls program flow by executing a specific set of statements,
depending on the value of an expression.
 variable scope: The context in which a variable is accessible (such as local or global).
 while statement: Repeats a statement or a series of statements as long as a given conditional
expression evaluates to TRUE.
PHP Programming with MySQL, 2nd Edition 2-13

Best Coding Practices – Chapter 2


Topic Best Practice
Formatting code Format code consistently within a program
Indent code five spaces for readability
Writing PHP code blocks Use the Standard Script Delimiters <?php … ?>
Using the echo statement Use the echo construct exclusively
Use lowercase characters for the echo keyword
Coding the echo statement Do not use parentheses with the echo statement
Adding comments to PHP script Add both line and block comments to your PHP code
Adding a line comment Use the two forward slashes (//) to begin a line comment
Displaying array elements with built-in Enclose the print_r(), var_export(), and
functions var_dump() functions in beginning and ending <pre> tags
Writing a user-defined function The name of a user-defined function should be descriptive of the
task it will perform
Writing a function definition Do NOT space between the function name and the opening
parenthesis
Key the opening curly brace on the same line as the function
name
Indent the function statements five spaces
Key the closing curly brace on a separate line
Calling a function Place the function definition above the calling statement
Writing a control structure To differentiate a control structure from a function, space once
after the conditional keyword before the parenthesis i.e. if
(...) or else (...)
Indent the statements to make them easier for the programmer to
follow the flow
Use curly braces around the statements to execute in a control
structure if there is more than one statement.
Coding a switch statement Include the optional break statement after the default case
label in a switch statement
Naming a counter variable If appropriate, name your counter variable $Count or
$Counter or use the letters ( i, j, k, l, x, y , z)
Other documents randomly have
different content
— Kuuluu olevan.

— Meneekö Olavi tervehtimään?

— On aikomus, mutta olisi pieni toimitus ensin tehtävä.

— No mikä?

— Näetsä, ne Katajiston huoneet seisovat siellä tyhjinä.

— Niinhän ne seisovat. Pannaanko huutokaupan kuulutus


kirkkoon?

— Ei… näetsä minulla on aikomus lahjoittaa ne Serafiialle. Mulla


on itselläni pieniä säästöjä, olen vasta miehuuden kynnyksellä… ja
kun en milloinkaan aio naida, niin ajattelin että Serafiian sopii saada
ne. Minulla, näetsä, oli vahvat ja vakavat tuumat, vaikka…

— Minäkin sen kyllä uskon.

Mielihyvissäni katselin minä jörömäistä Olavia ja miellyttävämpiä


sanoja, kuin mitä hän nyt puhui, ovat korvani harvoin kuulleet. Tiesin
miten ahdasta Serafiialla oli toimeentulo kahden pienen lapsen
kanssa, vaikka mies ei ollutkaan juoppo tai muuten kykenemätön.

— Pyytäisin sinua kirjoittamaan lahjakirjan nyt paikalla.

— Kyllä minä kirjoitan.

— Ja siihen lahjakirjaan pitää erittäin merkitä, että huoneet


menevät perinnöksi vanhimmalle lapselle. Tyttökö se taasen onkaan?

— Tyttö se on.
— Ettei niitä saa hävittää velkoihin eikä muutenkaan myydä.

Haettiin vierasmiehet, ja minä ryhdyin kirjoittamaan lahjakirjaa.


Välttääkseni lainopillisia sekavuuksia, kirjoitin lahjakirjan suorastaan
Serafiian vanhimman tytön nimeen. Ja siihen Olavikin empimättä
suostui.

— Lue nyt se ääneen vielä yhden kerran, pyysi hän, kun kaikki
nimet ja puumerkit jo olivat kirjoitetut alle. Ja minä luin lahjakirjan
toiseen kertaan.

— Voittehan te ottaa valanne päälle, että minä olen täydellä


järjellä ja terveellä ymmärryksellä? kysyi hän vierailta miehiltä.

— Kyllä me voimme.

— Hyvä on.

Minä taitoin kokoon paperin ja ojensin sen Olaville. Hän nousi ylös,
painoi lakin päähänsä ja alkoi jättelemään hyvästi. Huusin hänen
jälkeensä etehiseen, ettei koskaan menisi ohi, vaan pistäytyisi
tirkistämään.

— Kyllä sen teen, vastasi hän pimeältä pihalta.

Yksin jäätyäni selailin lehti lehdeltä hänen elämänsä lävitse.


Pariisin kapina ei miellyttänyt minua koko sinä iltana, sillä ajatukseni
häärivät jöröluontoisen Olavin ympärillä ja löysivät hänessä sopivan
maaperän kynnettäväksi.

Hänessä oli jotakin omituista ja alkuperäistä, jota en muissa


paininlyöjissä ole sen koommin tavannut.
*** END OF THE PROJECT GUTENBERG EBOOK KOTIPOLUILTA II:
PIENIÄ KERTOELMIA ***

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.
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade

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.

Let us accompany you on the journey of exploring knowledge and


personal growth!

testbankmall.com

You might also like