You are on page 1of 36

Solution Manual for C How to Program, 7/E 7th Edition Paul Deitel, Harvey Deitel

Solution Manual for C How to Program,


7/E 7th Edition Paul Deitel, Harvey
Deitel
Visit to download the full and correct content document: https://testbankmall.com/dow
nload/solution-manual-for-c-how-to-program-7-e-7th-edition-paul-deitel-harvey-deitel/

Visit TestBankMall.com to get complete for all chapters


2 Chapter 1 Introduction to Computers, the Internet and the WebSolutions 3

[***Instructor’s Manual***]

Self-Review Exercises
1.1 Fill in the blanks in each of the following:
a) Computers process data under the control of sequences of instructions called computer
.
ANS: programs.
b) is a type of computer language that uses Englishlike abbreviations for ma-
chine-language instructions.
ANS: Assembly language.
c) languages are most convenient to the programmer for writing programs
quickly and easily.
ANS: High-level.
d) The only language a computer can directly understand is that computer’s .
ANS: machine language.
e) The programs that translate high-level language programs into machine language are
called .
ANS: compilers.
f) With development, individuals and companies contribute their efforts in de-
veloping, maintaining and evolving software in exchange for the right to use that soft-
ware for their own purposes, typically at no charge.
ANS: open-source.
g) C is widely known as the development language of the operating system.
ANS: UNIX
1.2 Fill in the blanks in each of the following sentences about the C environment.
a) C programs are normally typed into a computer using a(n) program.
ANS: editor.
b) In a C system, a(n) program automatically executes before the translation
phase begins.
ANS: preprocessor.
c) The two most common kinds of preprocessor directives are and .
ANS: including other files in the file to be compiled, performing various text replacements.
d) The program combines the output of the compiler with various library func-
tions to produce an executable image.
ANS: linker.
e) The program transfers the executable image from disk to memory.
ANS: loader.
1.3 Fill in the blanks in each of the following statements (based on Section 1.9):
a) Objects have the property of —although objects may know how to commu-
nicate with one another across well-defined interfaces, they normally are not allowed to
know how other objects are implemented.
ANS: information hiding.
b) In object-oriented programming languages, we create to house the set of
methods that perform tasks.
ANS: classes.
c) With , new classes of objects are derived by absorbing characteristics of existing
classes, then adding unique characteristics of their own.
ANS: inheritance.
3 Chapter 1 Introduction to Computers, the Internet and the WebSolutions 3

d) The size, shape, color and weight of an object are considered of the object’s
class.
ANS: attributes.

Solutions
1.4 Categorize each of the following items as either hardware or software:
a) CPU
ANS: Hardware.
b) C++ compiler
ANS: Software.
c) ALU
ANS: Hardware.
d) C++ preprocessor
ANS: Software.
e) input unit
ANS: Hardware.
f) an editor program
ANS: Software.
1.5 Fill in the blanks in each of the following statements:
a) The process of instructing the computer to solve a problem is called .
ANS: computer programming.
b) What type of computer language uses Englishlike abbreviations for machine-language
instructions? .
ANS: assembly language.
c) The level of computer language at which it’s most convenient to write programs quickly
and easily is .
ANS: high-level language.
d) The only language that a computer directly understands is called that computer's
.
ANS: machine language.
e) Web 2.0 embraces an —a design that encourages user interaction and com-
munity contributions.
ANS: architecture of participation.
1.6 Fill in the blanks in each of the following statements:
a) is now used to develop large-scale enterprise applications, to enhance the
functionality of web servers, to provide applications for consumer devices and for many
other purposes.
ANS: Java.
b) initially became widely known as the development language of the UNIX op-
erating system.
ANS: C.
c) The programming language was developed by Bjarne Stroustrup in the early
1980s at Bell Laboratories.
ANS: C++.
1.7 Discuss the meaning of each of the following names:
a) stdin
ANS: stdin (the standard input stream), which is normally the keyboard, but stdin can be
connected to another stream.
4 Chapter 1 Introduction to Computers, the Internet and the WebSolutions 3

b) stdout
ANS: Data is often output to stdout (the standard output stream), which is normally the
computer screen, but stdout can be connected to another stream.
c) stderr
ANS: The standard error stream is referred to as stderr. The stderr stream (normally con-
nected to the screen) is used for displaying error messages. It’s common to route reg-
ular output data, i.e., stdout, to a device other than the screen while keeping stderr
assigned to the screen so that the user can be immediately informed of errors.
1.8 Why is so much attention today focused on object-oriented programming?
ANS:
1.9 (Internet in Industry and Research) Figure 1.1 provides examples of how computers and
the Internet are being used in industry and research. Find three additional examples and describe
how each is using the Internet and the web.
ANS: Answers will vary.
1.10 (Cloud Computing) Describe three benefits of the cloud computing model.
ANS: Answers will vary. Information is accessed via the Internet and available on de-
mand—rather than having it stored on your personal computer. Cloud storage or
processing services are generally more cost effective, allowing you to increase or de-
crease resources to meet your needs at any given time, rather than purchasing expen-
sive hardware to ensure that you have enough storage and processing power to meet
your needs at their peak levels. Software offered as a service in the cloud allows busi-
nesses to easily manage customer information and access it from their computers or
mobiles devices. These applications are often less expensive and shift the burden of
managing the applications from the business to the service provider, saving businesses
additional money. Another benefit of using software in the cloud is that it ensures
everyone within the business is working on the same version of the software at all
times.
1.11 (Internet Negatives) Besides their numerous benefits, the Internet and the web have several
downsides, such as privacy issues, identity theft, SPAM and malware. Research some of the negative
aspects of the Internet. List five problems and describe what could possibly be done to help solve
each.
ANS: Answers will vary.
1.12 (Watch as an Object) You are probably wearing on your wrist one of the most common
types of objects—a watch. Discuss how each of the following terms and concepts applies to the no-
tion of a watch: object, attributes, behaviors, class, inheritance (consider, for example, an alarm
clock), messages, encapsulation and information hiding.
ANS: The entire watch is an object that is composed of many other objects (such as the
moving parts, the band, the face, etc.) Watch attributes are time, color, band, style
(digital or analog), etc. The behaviors of the watch include setting the time and get-
ting the time. A watch can be considered a specific type of clock (as can an alarm
clock). With that in mind, it is possible that a class called Clock could exist from
which other classes such as watch and alarm clock could inherit the basic features in
the clock. The watch is an abstraction of the mechanics needed to keep track of the
time. The user of the watch does not need to know the mechanics of the watch in
order to use it; the user only needs to know that the watch keeps the proper time. In
this sense, the mechanics of the watch are encapsulated (hidden) inside the watch.
The interface to the watch (its face and controls for setting the time) allows the user
to set and get the time. The user is not allowed to directly touch the internal mechan-
ics of the watch. All interaction with the internal mechanics is controlled by the in-
Another random document with
no related content on Scribd:
The Project Gutenberg eBook of Elegy in Autumn
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.

Title: Elegy in Autumn


In memory of Frank Dempster Sherman

Author: Clinton Scollard

Release date: August 22, 2023 [eBook #71471]

Language: English

Original publication: New York: Frederick Fairchild Sherman,


1917

Credits: Charlene Taylor, David E. Brown, and the Online


Distributed Proofreading Team at https://www.pgdp.net
(This file was produced from images generously made
available by The Internet Archive/American Libraries.)

*** START OF THE PROJECT GUTENBERG EBOOK ELEGY IN


AUTUMN ***
ELEGY IN AUTUMN

IN MEMORY OF
Frank Dempster Sherman

BY
Clinton Scollard

new york
Frederic Fairchild Sherman
mcmxvii
Copyright, 1917, by
Clinton Scollard
ELEGY IN AUTUMN
I
Brother in song, you who have gone before
Along far incommunicable ways,
Leaving me here upon this mortal shore,
A bondman to the tyrant nights and days,
Across the distance, hail!
Though Time may sever, and we meet no more,
Yet what shall Time avail!
II
’Twas Autumn when we first set hand to hand,
And eye to eye, in loyal comradeship;
Drowsed with a draught of Beauty seemed the land,
As it had raised a golden cup to lip;
But you embodied Spring,
Its harvest hopes, its deeds in joyance planned,
Its brave adventuring.
III
I can recall your buoyance,—can recall
The star-sown hours beneath the Cambridge trees,
When o’er us wheeled the bright processional
Of bold Orion and the Pleiades,
And how we strolled along
Laughterful, and oblivious to all
Save the sweet thrall of Song.
IV
Youth has its visions and its fervors; yours
Were lovingly enlinked with Poesy;
You dreamed the dream that many an one allures,
The vernal dream where life is harmony.
And though the years estranged
Your full allegiance, something still assures
My heart you never changed.
V
What merriment was ours those shut-in nights
When Winter, clamorous at the casement, cried!
What dear association, what delights
As we in friendly emulation vied,
While Aspiration’s cruse
Was brimmed for us, beholding on dim heights
The presence of the Muse!
VI
And then there opened wider paths to tread
When Love, with Song, beguiled you on and on,
While Art around your feet unfaltering shed
Its luminous light, irradiant as the dawn;
Though you saw many part
From deities long worshipped, you were wed
Inalienably to Art.
VII
What though the rigid chains of circumstance
Oft held you in the trammels of the town,
Your heart went woodward where the fairies dance
What time the moon its silvery sheen sifts down.
You loved the reeds and rills,
The sea, the shore, their glamour and romance,
And all the climbing hills.
VIII
And when you made escape, and sensed the wild
Aromas beat about you, when you fared
By tracks unwonted, like an unleashed child
You gleefully your gay abandon shared.
Care from your shoulders thrown,
You seemed an Ariel spirit, long exiled,
Come back unto its own.
IX
With gracious Memory again I go
To tread with you where meads are green and gold,
Where upland slopes are strewn with daisy-snow,
And bee-balm torches light the flocks to fold,
And willow branches wave
Above Oriskany, singing far below
Its liquid summer stave.
X
Now south we sail where stormy currents meet
Round the wind-harassed cape of Hatteras,
Beyond whose beacons, when the tides retreat,
The wide sea-mirror is like burnished glass;
There, ’mid the drowsy calms,
As Ponce de Leon did of yore, we greet
The tall Floridian palms.
XI
Here down the live-oak aisles ’tis ours to stray
With wraiths of many a stern conquistador,
Those vanished warriors of an elder day
When gray San Marco bore the brunt of war;
Here we in revery lean
Upon the ramparts beetling o’er the bay,
And watch the shifting scene;—
XII
The boats that dip and dart like living things,
Seeking the open sea beyond the bar;
The graceful gulls with sunlight on their wings
Up the Matanzas soaring fleet and far
Where inlets deep beguile;
And o’er the waters undulant shimmerings
The low coquina isle.
XIII
Then, at the drooping of the twilight hour,
We wander in the ancient plaza where
We breathe the attar of the jasmine flower
Like incense on the altar of the air;
And list, as music swells
Down drifting from the old cathedral tower,
The arpeggio of the bells.
XIV
We linger by the sea-wall while the tide
Below us murmurs like a sad refrain,
Bearing from outer ocean reaches wide
The lore and legend of the Spanish main,
Nor leave that spot serene
Till Sleep, as with the mantle of the bride,
Wraps fair Saint Augustine.
XV
Days dedicate to rapturous things were these;
It was as though Youth came again, and brought
Past aims, past ardors and past ecstasies,
And toward the shrine of Beauty turned our thought.
And there were after times
Of exultation, prismic harmonies,
When hours ran by in rhymes.
XVI
Once, ’mid cathedral Carolinian pines,
We saw the Springtide, at its radiant birth,
Kindle to fragrant gold the coiling vines,
And make a garden of the wakened earth;
And every morning heard
Within the treetops, melody linked with mirth,
The hidden mocking-bird.
XVII
And while the cardinal through the waving bredes
Of pendulous moss swift flitted like a flame,
Back flooded to our minds the illustrious deeds,
Emblazoned on the honor-scroll of Fame,
When Liberty was won,
Hearkening the Ashley whisper to its reeds
The name of Marion.
XVIII
From Gloucester cliffs and brown Nantucket dunes
The mountains lured you, and the mountain star;
For us the Woodland sang its lyric runes
Where’er we followed it, or near or far,
In sun or shadow cool,
Or loitered through long languorous afternoons
By Dian’s darkling pool.
XIX
Far up the valley Wittenberg’s vast form,
Its summit beckoning, with you I view,
And above sweeping slopes where wild bees swarm
Glimpse timid deer at dawn and fall of dew;
Through Panther Kill we roam,
And mark the purple streamers of the storm
Ascend behind the Dome.
XX
And, too, in bookmen’s mines of dusty ore
Ever shall I remember how we delved,
Plucking from out the musty treasure-store
Rich rarities within the darkness shelved,
Elated if we found
Leaves that some name we long had honored bore
In frayed morocco bound.
XXI
Thus, step by step, we trod adown the years,
Thus, side by side, with ne’er a break between;
We shared our laughter and we shared our tears,
Nor deemed inexorable Fate might intervene
To sever the strong cord
That bound us, Fate with its “abhorrèd shears,”
That is man’s over-lord.
XXII
You that in Autumn came, in Autumn went;
How vain to say the mourning word! how vain
To beat the bars of that arbitrament
That metes to mortals pleasurement or pain!
How vain!—how vain!—and yet
We beat upon them, and we only gain
The poignance of regret!

You might also like