C Programming From Problem Analysis to Program Design 5th Edition Barbara Doyle download
C Programming From Problem Analysis to Program Design 5th Edition Barbara Doyle download
https://ebookname.com/product/c-programming-from-problem-
analysis-to-program-design-5th-edition-barbara-doyle/
https://ebookname.com/product/c-programming-from-problem-
analysis-to-program-design-2nd-edition-barbara-doyle/
https://ebookname.com/product/c-programming-from-problem-
analysis-to-program-design-6th-edition-d-s-malik/
https://ebookname.com/product/c-programming-program-design-
including-data-structures-fourth-edition-d-s-malik/
https://ebookname.com/product/elements-of-information-theory-
second-edition-thomas-m-cover/
Garden Insects of North America The Ultimate Guide to
Backyard Bugs Second Edition Whitney Cranshaw
https://ebookname.com/product/garden-insects-of-north-america-
the-ultimate-guide-to-backyard-bugs-second-edition-whitney-
cranshaw/
https://ebookname.com/product/a-guide-to-it-contracting-
checklists-tools-and-techniques-michael-r-overly/
https://ebookname.com/product/do-it-yourself-kitchens-stunning-
spaces-on-a-shoestring-budget-1st-edition-better-homes-and-
gardens/
https://ebookname.com/product/meet-and-grow-rich-how-to-easily-
create-and-operate-your-own-mastermind-group-for-health-wealth-
and-more-1st-edition-joe-vitale/
https://ebookname.com/product/the-retail-doctor-s-guide-to-
growing-your-business-a-step-by-step-approach-to-quickly-
diagnose-treat-and-cure-1st-edition-bob-phibbs/
The Blackwell Guide to the Philosophy of Science Peter
Machamer
https://ebookname.com/product/the-blackwell-guide-to-the-
philosophy-of-science-peter-machamer/
C# PROGRAMMING:
FROM PROBLEM ANALYSIS TO PROGRAM DESIGN
FIFTH EDITION
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
C# PROGRAMMING:
FROM PROBLEM ANALYSIS TO PROGRAM DESIGN
FIFTH EDITION
BARBARA DOYLE
"VTUSBMJBt#SB[JMt+BQBOt,PSFBt.FYJDPt4JOHBQPSFt4QBJOt6OJUFE,JOHEPNt6OJUFE4UBUFT
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
This is an electronic version of the print textbook. Due to electronic rights restrictions, some third party content may be suppressed. Editorial
review has deemed that any suppressed content does not materially affect the overall learning experience. The publisher reserves the right to
remove content from this title at any time if subsequent rights restrictions require it. For valuable information on pricing, previous
editions, changes to current editions, and alternate formats, please visit www.cengage.com/highered to search by
ISBN#, author, title, or keyword for materials in your areas of interest.
Important Notice: Media content referenced within the product description or the product text may not be available in the eBook version.
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
C# Programming: From Problem Analysis to © 2016, 2014 Cengage Learning
Program Design, Fifth Edition WCN: 02-200-203
Barbara Doyle
ALL RIGHTS RESERVED. No part of this work covered by the
copyright herein may be reproduced, transmitted, stored, or used
Product Director: Kathleen McMahon
in any form or by any means graphic, electronic, or mechanical,
Product Team Manager: Kristin McNary including but not limited to photocopying, recording, scanning,
Senior Product Manager: Jim Gish digitizing, taping, Web distribution, information networks, or
information storage and retrieval systems, except as permitted
Senior Content Developer: Alyssa Pratt
under Section 107 or 108 of the 1976 United States Copyright Act,
Product Assistant: Abigail Pufpaff without the prior written permission of the publisher.
Marketing Manager: Eric LaScola Microsoft ® is a registered trademark of the Microsoft
Senior Production Director: Wendy Troeger Corporation.
Production Director: Patty Stephan Unless otherwise noted all screenshots are courtesy of Microsoft
Corporation
Senior Content Project Manager: Jennifer
K. Feltri-George Unless otherwise noted all tables/figures exhibits are
© Cengage Learning®
Managing Art Director: Jack Pendleton
Cover image: © zeljkodan/Shutterstock.com
Production Service: SPi Global For product information and technology assistance, contact us at
Cengage Learning Customer & Sales Support, 1-800-354-9706
Compositor: SPi Global
For permission to use material from this text or product,
submit all requests online at www.cengage.com/permissions.
Further permissions questions can be e-mailed to
permissionrequest@cengage.com
Cengage Learning
20 Channel Center Street
Boston, MA 02210
USA
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
BRIEF CONTENTS
© zeljkodan/Shutterstock.com
PREFACE xxiii
7. Arrays 399
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
vi | C# Programming: From Problem Analysis to Program Design, Fifth Edition
GLOSSARY 1129
INDEX 1143
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
TABLE OF CONTENTS
© zeljkodan/Shutterstock.com
Preface xxiii
INTRODUCTION TO COMPUTING
1 AND APPLICATION DEVELOPMENT 1
History of Computers 2
System and Application Software 4
System Software 5
Application Software 7
Software Development Process 7
Steps in the Program Development Process 8
Programming Methodologies 15
Structured Procedural Programming 15
Object-Oriented Programming 18
Evolution of C# and .NET 21
Programming Languages 21
.NET 23
Why C#? 25
Types of Applications Developed with C# 26
Web Applications 27
Windows Applications 28
Console Applications 28
Exploring the First C# Program 29
Elements of a C# Program 30
Comments 30
Inline Comments 31
Multiline Comments 31
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
viii | C# Programming: From Problem Analysis to Program Design, Fifth Edition
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Table of Contents | ix
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
x | C# Programming: From Problem Analysis to Program Design, Fifth Edition
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Table of Contents | xi
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
xii | C# Programming: From Problem Analysis to Program Design, Fifth Edition
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Table of Contents | xiii
Resources 386
Quick Review 386
Exercises 388
Programming Exercises 394
ARRAYS 399
7 Array Basics 400
Array Declaration 401
Array Initializers 404
Array Access 406
Sentinel-Controlled Access 411
Using Foreach with Arrays 412
Array Class 413
Arrays as Method Parameters 419
Pass by Reference 420
Array Assignment 423
Params Parameters 425
Arrays in Classes 426
Array of User-Defined Objects 428
Arrays as Return Types 429
Coding Standards 447
Guidelines for Naming Arrays 447
Advanced Array Suggestions 447
Resources 447
Quick Review 447
Exercises 448
Programming Exercises 455
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
xiv | C# Programming: From Problem Analysis to Program Design, Fifth Edition
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Table of Contents | xv
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
xvi | C# Programming: From Problem Analysis to Program Design, Fifth Edition
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Table of Contents | xvii
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
xviii | C# Programming: From Problem Analysis to Program Design, Fifth Edition
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Table of Contents | xix
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
xx | C# Programming: From Problem Analysis to Program Design, Fifth Edition
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Table of Contents | xxi
GLOSSARY 1129
INDEX 1143
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
P R E FA C E
© zeljkodan/Shutterstock.com
Why C#?
C# has gained tremendous popularity in the industry. C# is a true object-oriented lan-
guage that includes a rich set of instruction statements. C# was the language used for
development of much of .NET, the Microsoft programming paradigm that includes a
collection of more than 2,000 predefined classes that make up the Framework Class
Library (FCL). Thus, C# has access to a large collection of predefined classes similar
to those available to Java. C# provides tools that make it easy to create graphical user
interfaces—similar to the tools Visual Basic programmers have employed for years.
C# also provides the pure data crunching horsepower to which C/C++ programmers
have become accustomed. However, unlike other languages, C# was designed from
scratch to accommodate Internet and Windows applications. C# is an elegant and
simple object-oriented language that allows programmers to build a breadth of appli-
cations. C# is also a great language for mobile application development. It can run on
not only Windows platforms but is very portable and can run on Android and iOS
devices. For these reasons, C# was chosen as the language for this book.
Copyright 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Another Random Document on
Scribd Without Any Related Topics
The Project Gutenberg eBook of The
Adventures of Ulysses the Wanderer
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.
Language: English
Illustrated
BY
W. G. MEIN
London
GREENING and COMPANY, Ltd.
20 CECIL COURT, CHARING CROSS ROAD
1902
IN PREPARATION.
THE SERF. A Tale of the Times of King
Stephen.
TO
“The long day wanes: the slow moon climbs: the deep
Moans round with many voices. Come, my friends,
’Tis not too late to seek a newer world.
Push off, and sitting well in order smite
The sounding furrows; for my purpose holds
To sail beyond the sunset——”
C. RANGER-GULL.
A BRIEF ACCOUNT
OF THE
PRINCIPAL CHARACTERS IN THE
WANDERINGS OF ULYSSES,
ACCORDING TO THE ANCIENT
WRITERS AND LEGENDS.
Ulysses. The hero of Homer’s great poem was known to the Greeks
under the name of Odysseus. He was king of the pastoral islands of
Ithaca and Dulichium. Most of the petty Greek chieftains became
suitors for the hand of the beautiful Helen, and Ulysses was among
the number, but withdrew when he realised the smallness of his
chances. He then married Penelope, the daughter of Icarius, and at
the same time joined with the other unsuccessful lovers of Helen in
a sworn league for her future protection should she ever stand in
need of it. He then returned to Ithaca with his bride. The rape of
Helen soon compelled him to leave Penelope and join the other
Grecian princes in the great war against Troy. He endeavoured to
avoid the summons by pretending madness. Yoking a horse and a
bull together, he began to plough the sands of the sea shore. The
messenger who was sent to him took Telemachus, the infant son of
Ulysses, and placed the child in the direct course of the plough, in
this way circumventing his design. Ulysses was one of the most
prominent figures during the Trojan war, his valour, and still more his
cunning, making him of supreme importance in the councils of the
princes. After the Trojan war Ulysses set sail for home, and at this
period of his career the story of the Odyssey begins. He was driven
by malevolent winds on to the shores of Africa, where he and his
mariners were captured by the one-eyed giant, Polyphemus, who
ate five of the band. Ulysses escaped by thrusting a stake into the
giant’s eye and then leaving the cave in which he was confined by
crawling under the bellies of the sheep when the Cyclops led them
to pasture. He next arrives at Æolia, and Æolus gave him,
imprisoned in bags, all the evil winds which were likely to obstruct
his safe return homewards. The sailors, curious to know what the
bags contained, opened them, and the imprisoned winds, rushing
out with fearful violence, destroyed the whole fleet save only the
vessel which bore Ulysses. The ship was thrown on the shores of the
Goddess Circe’s enchanted island, and the companions of Ulysses
were changed into swine by the enchantress. Ulysses escaped the
like fate by means of a magic herb he had received from Mercury,
and forced the goddess to bring his friends to their original shape.
He then yielded to her solicitations and made her the mother of
Telegonus. The next stage of his adventures brings him to Hades,
where he goes to consult the shade of the wise Tiresias as to the
means of reaching home in safety. He passes the terrible coasts of
the Sirens unhurt, and escaped the monsters Scylla and Charybdis
by a series of narrow chances. In Sicily his sailors, urged by extreme
hunger, killed some of Apollo’s cattle, and the Sun-God in revenge
destroyed all his companions and also his ship. Ulysses alone
escaped on a raft and swam to the shores of an island belonging to
Calypso, with whom he lived a lotos life as husband for seven years.
The gods eventually interfered, and Ulysses, once more properly
equipped, set out on his travels again. However, Neptune
(Poseidon), the lord of the sea, still remembered the injury done to
his son, the giant Polyphemus, and wrecked this ship also. Ulysses
was cast up on the island of the Phœacians, where he was
hospitably received by King Alcinous and his daughter the Princess
Nausicaa, and at last sent home in safety to his own kingdom after
an absence of more than twenty years. The Goddess Athene
befriended him, and informed him that his palace was crowded with
debauched and insolent suitors for the hand of Queen Penelope, but
that his wife was still faithful and unceasingly mourned his loss.
Adopting the advice of the goddess, he disguised himself in rags to
see for himself the state of his home. He then slew the suitors and
lived quietly at home for the remaining sixteen years of his
adventurous life. Tradition says that he at last met his death at the
hands of his illegitimate son Telegonus.
Telemachus. The son of Ulysses and Penelope. When his father left for
the Trojan war Telemachus was but an infant, but at the close of the
campaign he went to seek him and to obtain what information he
could about his father’s absence. When Ulysses returned home in
disguise Athene brought son and parent together, and the two
concerted means to rid the palace of the suitors. After the death of
Ulysses, Telemachus is said to have gone to the island of Circe and
married the enchantress, formerly his father’s mistress. A son called
Latinus sprung from this union.
Athene (Minerva). The Goddess of Wisdom was born from Zeus’ brain
without a mother. She sprang from his head in full armour. She was
the most powerful of the goddesses and the friend of mankind. She
was the patroness of Ulysses, and it was believed she first invented
ships. Her chastity was inviolable. Her worship was universal.
Zeus (Jupiter). Chief of all the gods. His attitude towards Ulysses was
friendly owing to the persuasion of his daughter Athene.
Poseidon (Neptune) was the Sea God and next in power to Zeus. He
was the father of the giant Polyphemus whom Ulysses blinded, and
is the consistent enemy of Ulysses throughout the whole Odyssey.
Neptune was the brother of Zeus.
Hermes (Mercury) was the messenger of the gods and a son of Zeus.
He was especially the patron of travellers and well disposed to
Ulysses.
The Sirens. Monsters with sweet alluring voices who inhabited a small
island near Sicily. They had bodies like great birds, according to
some writers, with the heads of beautiful women. Whosoever heard
their magic song must go to them and remain with them for ever.
Ulysses escaped the enchantment by causing himself to be bound to
the ship’s mast.
Euryclea. The nurse of Ulysses in his infancy, and one of the first to
recognise him on his return from his wanderings. She was in her
youth the lovely daughter of Ops of Ithaca.
Eumæus. The herdsman and steward of Ulysses who knew his master
on his return after an absence of twenty years. He was the king’s
right-hand man in the plot against, and fight with, the suitors of
Penelope.
A warm mild wind, laden with sweet scents, blew over the sailors
from the island, which now lay far astern.
In the weary west the charmed sunset still lingered over Lotus Land.
A rosy flush lay on the snow-capped mountains which were yet
spectral in the last lights of the day, but looking out over the bows
the sky was dark purple changing into black, and where it met the
sea there was a white gleam of foam.
The companions of Ulysses sat idle from the oars, for the wind filled
the belly of the sail and there was no need for rowing. A curious
silence brooded over them all. No one spoke to his fellow. The faces
of all were sad, and in the eyes of some the fire of an unutterable
regret burnt steadily.
The heads of all were turned towards the island, which was fast
disappearing from their view. Some of the men shaded their eyes
with their hands in one last long look of farewell.
As the curtain of the dark fell upon the sea, the warm offshore wind
died away. A colder breeze, full of the sea-smell itself, came down
over the port bow; it moaned through the cordage, and little waves
began to hiss under the cutwater.
Every now and again the wind freshened rapidly. The mournful
whistling became a sudden snarling of trumpets. The ship and crew
seemed to have passed over the limits of a tableau. Not only was it
a quick elemental change of scene, but the change had its influence
with the spectators.
The sad fire—if the glow of regret is indeed a fire—died out of heavy
eyes half veiled by weary lids. The sea-light dawned once more upon
the faces of the mariners, the bright warm blood moved swiftly in
their veins.
One man ran to the steering oar to give an aid to the helmsman as
the ship went about on the starboard tack, three more stood by the
sheet, a hum of talk rose from the waist of the boat. Ulysses stood
in the bows looking forward into the night. His tall, lean figure was
bent forward, and his arm was thrown round the gilded boss of the
prow. His eyes were deep set in his head, and his brow was
furrowed with the innumerable wrinkles which come to the man who
lives a life of hardship and striving.
Yet the long years of battle and wandering, a life of shocks! had only
intensified the alertness of his pose. He seemed, as he looked out
into the night, a personification of “readiness.” A crisp dark beard
grew round his throat, and the veins on his bare brown arms were
like blue enamel round a column of bronze.
When the ship went about again he came down into the body of the
ship and helped to pull upon the brace. Though he was no taller
than many of his men, and leaner than most, in physical strength as
well as in intellect he was first and chief. The mighty muscles leapt
up on his arms as he strained on the taut rope.
The ship slanted away down the wind into the night. The men
gathered round their captain. “Comrades,” he said to them in a
singularly sweet and musical voice, “once more we adventure the
deep, and no man knows what shall befall us. To our island home in
the west, to dear Ithaca! if the gods so will it. Our wives weep for us
on our deserted hearthstone. Our little ones are noble youths ere
now, and may Zeus bring us safe home at last. Yet much it
misdoubts me that there are other perils in store for us ere we hear
the long breakers beat upon the shores of Ithaca and see the
morning sun run down the wooded sides of Neriton. Be that as the
Fates will it, let us keep always courage, gaiety, and the quiet mind.”
“We are well away from there,” said one of the men, nodding
vaguely towards the stern.
“That are we,” said another; “that cursed fruit is honeysweet in my
mouth still. It stole away our brains and made us as women, we! the
men who fought in Troyland.”
“Of what profit is it to look to the past, Phocion?” said Ulysses. “We
did eat and sleep and forget, but it is over. The sea wind is salt once
more upon our faces. Let us eat the night meal, and then I will
choose a watch and the rest may sleep. Hand me the cup—To to-
morrow’s dawn!”
Then one of the sailors took dried goat’s flesh and fruit from a locker
in the stern, and by the light of a torch of sawn sandal wood they
fell to eating. Great bunches of purple grapes lay before each sailor,
but they had brought none of the magic lotus fruit with them to
steal away their vigour and thicken their blood.
Then they lay down to sleep under coverings of skins. Two men
went to the great steering oar, three men watched amidship by the
braces, and Ulysses himself wrapped a woollen cloak round him and
went once more into the bows.
Alone there with the wind his thoughts once more went back to his
far distant home. He thought with longing of his old father Laertes,
of the child Telemachus playing in the marble courtyard of the sunny
palace on the hill. A deep sigh shuddered out from his lips as his
thoughts fell upon the lonely Queen Penelope. “Wife of mine,” he
thought, “shall I ever lie beside you more? Is there silver in your
bright hair now? Are your thoughts to mewards as mine to you?
Perchance another rules in my palace and sits at my seat. Are your
lips another’s now? The great tears are blinding me. Courage!”
Bending his head upon his breast, Ulysses prayed long and earnestly
to his awful patroness, the Goddess Athene, that she would still keep
ward over his fortunes and guide him safely home.
The night wore on and became very silent. The ship seemed to be
moving swiftly and surely, though the wind had dropped and the
voice of the waves was hushed. It seemed to the watcher in the
bows that the ship was moving in the path of some strong current.
A curious white mist suddenly rolled over the still surface of the sea,
thick and ghostly. The mast and sail, which was now drooping and
lifeless, swayed through it like giant spectres. Ulysses could see
none of his companions, but when he hailed the watch the voice of
Phocion came back to him through the ghostly curtain, curiously
thick and muffled.
“The mist thickens, my captain,” said the sailor. “Can you see aught
ahead?”
“I can see nothing, Phocion,” shouted Ulysses; “the mist is like wool.
But I think it is a land mist come out to meet us. There should be
land ahead.”
“I hear no surf or the rolling of waves,” said Phocion. “May Zeus
guide the boat, for mortal men are of no avail to-night.”
The ship moved on swiftly as if guided by invisible hands towards
some goal, and still the expectant mariners heard no sound.
Quite suddenly, and without the slightest warning, a vivid copper-
coloured flash of lightning illuminated the ship. For an instant in the
hard lurid light Ulysses saw the whole of the vessel in a distinct
picture.
Every detail was manifest—the mast, the cordage, the sleeping
sailors below, the watching group by the shrouds, and, right away
astern, the startled helmsmen motionless as statues of bronze.
Then with a long grinding noise the ship seemed suddenly lifted up
in the water, jerked forward, and then dropped again. She began to
heel over a little out of the perpendicular, and then remained still,
stranded upon an unknown and mysterious shore, where the waves
were all asleep. Still the white mist circled round them.
“Comrades,” said Ulysses, “we are brought here by no chance of
wind and waves. Some god has done this thing, but whether for
weal or woe I cannot tell. Let us land upon the beach and lie down
with our weapons within sound of the sea till dawn. At sunrise we
shall know where the god has brought us.”
They landed at the order, and with the supreme indifference of the
adventurer lay upon the shore and slept out the remainder of the
night. But Ulysses had a prescience of harm, and was full of sinister
forebodings. He did not sleep, but paced through the mist all night
in a little beaten track among the boulders. He prayed long and
earnestly to Athene.
When the first faint hintings of dawn brightened through the mist a
little breeze arose, and before the sky was more than faintly flushed
with day the night fog was blown away like thistledown.
As the sun climbed up the sky the companions found that they had
been carried to a scene of singular beauty. They were on an island,
a small, rich place at the mouth of a great bay. Rich level grass
meadows, green as bright enamel and brilliant with flowers, sloped
gently down to the violet sea. Behind was a thickly-wooded hill, at
the foot of which was a sparkling spring surrounded by a tall grove
of poplar trees.
In the leafy wood the wild goats leapt under the wild vine trees like
Pan at play, as fearless of the intruders as if they had never seen
men before. All the bright morning the sailors made the wood ring
with happy laughter as they speared the goats for a feast. All trouble
passed from their minds, and as the spears flashed swiftly through
the green wood the shrill, jocund voices of the hunters made all the
island musical. Ulysses plunged into a translucent pool at the foot of
the spring, and the cool water flashed like diamonds over his strong
brown arms, and he looked indeed as if he were some river-god and
this his fairy home.
All day long they feasted and drank wine which they had brought in
skins from Lotus Land. When night was falling, very still and gentle,
they saw the blue smoke of fires over the bay, on the mainland,
about a mile away, and the bleating of many sheep and the lowing
of herds came to them over the wine-coloured sea.
Ever and again voices could be heard—strange resonant voices.
“That must be the country of some strange gods,” the sailors said to
each other. “Those are no mortal voices. We are come into some
great peril.” Before they slept they sacrificed a goat on the seashore
to Zeus, that he might guard them from any coming harm.
In the morning the king prepared for action. It was necessary to find
upon what shores they had arrived, to get direction of Ithaca, and if
treasure was to be won by force or guile, to take the opportunity
which chance or the gods had sent.
Ulysses chose twelve of his men, tried veterans with nerves of steel,
old comrades who had fought with him for Helen on the windy plains
of Troy. With these old never-strikes he embarked on the ship. He
left Phocion as leader of the remainder of the crew, and taking
Elpenor with him as second in command, they got out six sweeps,
three on each side of the ship, and rowed slowly over the glassy bay.
The mainland, on the shore where they landed, was a wild rocky
place, and there was a broad road winding away up to the higher
pasture lands. The road was made of great rocks beaten into
smoothness, and fresh spoor of cattle showed that not long since a
great herd had passed to the upland feeding grounds.
Directly in front of them as they landed was a high cave. It was
fringed with laurel bushes, which grew on ledges in the cliff side.
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.
ebookname.com