Java How To Program Early Objects 11th Edition Deitel Solutions Manual Download
Java How To Program Early Objects 11th Edition Deitel Solutions Manual Download
https://testbankfan.com/product/java-how-to-program-early-objects-11th-
edition-deitel-solutions-manual/
https://testbankfan.com/product/java-how-to-program-early-
objects-11th-edition-deitel-test-bank/
https://testbankfan.com/product/java-how-to-program-early-
objects-10th-edition-deitel-solutions-manual/
https://testbankfan.com/product/java-how-to-program-early-
objects-10th-edition-deitel-test-bank/
https://testbankfan.com/product/strategic-management-concepts-and-
cases-1st-edition-rothaermel-test-bank/
Calculus for Business Economics Life Sciences and Social
Sciences 13th Edition Barnett Test Bank
https://testbankfan.com/product/calculus-for-business-economics-life-
sciences-and-social-sciences-13th-edition-barnett-test-bank/
https://testbankfan.com/product/american-social-welfare-policy-a-
pluralist-approach-8th-edition-karger-test-bank/
https://testbankfan.com/product/assembly-language-
for-x86-processors-7th-edition-irvine-solutions-manual/
https://testbankfan.com/product/fundamental-financial-accounting-
concepts-8th-edition-edmonds-test-bank/
https://testbankfan.com/product/international-business-competing-and-
cooperating-in-a-global-world-1st-edition-geringer-test-bank/
Sociology A Brief Introduction Canadian Canadian 5th
Edition Schaefer Solutions Manual
https://testbankfan.com/product/sociology-a-brief-introduction-
canadian-canadian-5th-edition-schaefer-solutions-manual/
Arrays and ArrayLists 7
Objectives
In this chapter you’ll:
■ Learn what arrays are.
© 2018 Pearson Education, Inc., 330 Hudson Street, NY NY 10013. All rights reserved.
2 Chapter 7 Arrays and ArrayLists
Self-Review Exercises
7.1 Fill in the blank(s) in each of the following statements:
a) Lists and tables of values can be stored in and .
ANS: arrays, collections.
b) An array is a group of (called elements or components) containing values that
all have the same .
ANS: variables, type.
c) The allows you to iterate through an array’s elements without using a counter.
ANS: enhanced for statement.
d) The number used to refer to a particular array element is called the element’s .
ANS: index (or subscript or position number).
e) An array that uses two indices is referred to as a(n) array.
ANS: two-dimensional.
f) Use the enhanced for statement to walk through double array numbers.
ANS: for (double d : numbers).
g) Command-line arguments are stored in .
ANS: an array of Strings, called args by convention.
h) Use the expression to receive the total number of arguments in a command
line. Assume that command-line arguments are stored in String[] args.
ANS: args.length.
i) Given the command java MyClass test, the first command-line argument is .
ANS: test.
j) A(n) in the parameter list of a method indicates that the method can receive
a variable number of arguments.
ANS: ellipsis (...).
7.2 Determine whether each of the following is true or false. If false, explain why.
a) An array can store many different types of values.
ANS: False. An array can store only values of the same type.
b) An array index should normally be of type float.
ANS: False. An array index must be an integer or an integer expression.
c) An individual array element that’s passed to a method and modified in that method will
contain the modified value when the called method completes execution.
ANS: For individual primitive-type elements of an array: False. A called method receives
and manipulates a copy of the value of such an element, so modifications do not af-
fect the original value. If the reference of an array is passed to a method, however,
modifications to the array elements made in the called method are indeed reflected
in the original. For individual elements of a reference type: True. A called method
receives a copy of the reference of such an element, and changes to the referenced ob-
ject will be reflected in the original array element.
d) Command-line arguments are separated by commas.
ANS: False. Command-line arguments are separated by white space.
7.3 Perform the following tasks for an array called fractions:
a) Declare a constant ARRAY_SIZE that’s initialized to 10.
ANS: final int ARRAY_SIZE = 10;
b) Declare an array with ARRAY_SIZE elements of type double, and initialize the elements
to 0.
ANS: double[] fractions = new double[ARRAY_SIZE];
c) Refer to array element 4.
ANS: fractions[4]
© 2018 Pearson Education, Inc., 330 Hudson Street, NY NY 10013. All rights reserved.
Self-Review Exercises 3
7.5 Find and correct the error in each of the following program segments:
a)
ANS: Error: Referencing an array element outside the bounds of the array (b[10]).
Correction: Change the <= operator to <.
c)
© 2018 Pearson Education, Inc., 330 Hudson Street, NY NY 10013. All rights reserved.
4 Chapter 7 Arrays and ArrayLists
Exercises
NOTE: Solutions to the programming exercises are located in the ch07solutions folder.
Each exercise has its own folder named ex07_## where ## is a two-digit number represent-
ing the exercise number. For example, exercise 7.10’s solution is located in the folder ex-
07_10.
7.6 Fill in the blanks in each of the following statements:
a) One-dimensional array p contains four elements. The names of those elements are
, , and .
ANS: p[0], p[1], p[2], and p[3]
b) Naming an array, stating its type and specifying the number of dimensions in the array
is called the array.
ANS: declaring
c) In a two-dimensional array, the first index identifies the of an element and the
second index identifies the of an element.
ANS: row, column
d) An m-by-n array contains rows, columns and elements.
ANS: m, n, m times n
e) The name of the element in row 3 and column 5 of array d is .
ANS: d[3][5]
7.7 Determine whether each of the following is true or false. If false, explain why.
a) To refer to a particular location or element within an array, we specify the name of the
array and the value of the particular element.
ANS: False. The name of the array and the index are specified.
b) An array declaration reserves space for the array.
ANS: False. Arrays must be dynamically allocated with new in Java.
c) To indicate that 100 locations should be reserved for integer array p, you write the dec-
laration
p[100];
ANS: False. The correct declaration is int p[] = new int[100];
d) An application that initializes the elements of a 15-element array to zero must contain
at least one for statement.
ANS: False. Numeric arrays are automatically initialized to zero. Also, a member initializer
list can be used.
e) An application that totals the elements of a two-dimensional array must contain nested
for statements.
ANS: False. It is possible to total the elements of a two-dimensional array with nested while
statements, nested do…while statements or even individual totaling statements.
7.8 Write Java statements to accomplish each of the following tasks:
a) Display the value of element 6 of array f.
ANS: System.out.print(f[6]);
b) Initialize each of the five elements of one-dimensional integer array g to 8.
ANS: int g[] = {8, 8, 8, 8, 8};
c) Total the 100 elements of floating-point array c.
ANS: for (int k = 0; k < c.length; k++)
total += c[k];
d) Copy 11-element array a into the first portion of array b, which contains 34 elements.
ANS: for ( int j = 0; j < a.length; j++ )
b[ j ] = a[ j ];
© 2018 Pearson Education, Inc., 330 Hudson Street, NY NY 10013. All rights reserved.
Exercises 5
e) Determine and display the smallest and largest values contained in 99-element floating-
point array w.
ANS: double small = w[0];
double large = w[0];
System.out.println( smallest );
© 2018 Pearson Education, Inc., 330 Hudson Street, NY NY 10013. All rights reserved.
6 Chapter 7 Arrays and ArrayLists
l) Write a single printf statement that displays the elements of the first row of t.
ANS: System.out.printf("%d %d %d\n", t[0][0], t[0][1], t[0][2]);
m) Write a statement that totals the elements of the third column of t. Do not use iteration.
ANS: int total = t[0][2] + t[1][2];
n) Write a series of statements that displays the contents of t in tabular format. List the
column indices as headings across the top, and list the row indices at the left of each row.
ANS: System.out.printf("\t0\t1\t2%n%n");
System.out.println();
} // end for
7.10 (Sales Commissions) Use a one-dimensional array to solve the following problem: A com-
pany pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9% of
their gross sales for that week. For example, a salesperson who grosses $5,000 in sales in a week re-
ceives $200 plus 9% of $5,000, or a total of $650. Write an application (using an array of counters)
that determines how many of the salespeople earned salaries in each of the following ranges (assume
that each salesperson’s salary is truncated to an integer amount):
a) $200–299
b) $300–399
c) $400–499
d) $500–599
e) $600–699
f) $700–799
g) $800–899
h) $900–999
i) $1,000 and over
Summarize the results in tabular format.
7.11 Write statements that perform the following one-dimensional-array operations:
a) Set the 10 elements of integer array counts to zero.
ANS: for (int u = 0; u < counts.length; u++)
counts[u] = 0;
b) Add one to each of the 15 elements of integer array bonus.
ANS: for (int v = 0; v < bonus.length; v++)
bonus[v]++;
c) Display the five values of integer array bestScores in column format.
ANS: for (int w = 0; w < bestScores.length; w++)
System.out.println(bestScores[w]);
7.13 Label the elements of three-by-five two-dimensional array sales to indicate the order in
which they’re set to zero by the following program segment:
for (int row = 0; row < sales.length; row++) {
for (int col = 0; col < sales[row].length; col++) {
sales[row][col] = 0;
}
}
© 2018 Pearson Education, Inc., 330 Hudson Street, NY NY 10013. All rights reserved.
Special Section: Building Your Own Computer 7
Input/output operations:
final int READ = 10; Read a word from the keyboard into a specific location in memory.
final int WRITE = 11; Write a word from a specific location in memory to the screen.
Load/store operations:
final int LOAD = 20; Load a word from a specific location in memory into the accumulator.
final int STORE = 21; Store a word from the accumulator into a specific location in memory.
Arithmetic operations:
final int ADD = 30; Add a word from a specific location in memory to the word in the
accumulator (leave the result in the accumulator).
final int SUBTRACT = 31; Subtract a word from a specific location in memory from the word in
the accumulator (leave the result in the accumulator).
final int DIVIDE = 32; Divide a word from a specific location in memory into the word in
the accumulator (leave result in the accumulator).
final int MULTIPLY = 33; Multiply a word from a specific location in memory by the word in
the accumulator (leave the result in the accumulator).
Fig. 7.1 | Simpletron Machine Language (SML) operation codes. (Part 1 of 2.)
© 2018 Pearson Education, Inc., 330 Hudson Street, NY NY 10013. All rights reserved.
8 Chapter 7 Arrays and ArrayLists
Transfer-of-control operations:
final int BRANCH = 40; Branch to a specific location in memory.
final int BRANCHNEG = 41; Branch to a specific location in memory if the accumulator is negative.
final int BRANCHZERO = 42; Branch to a specific location in memory if the accumulator is zero.
final int HALT = 43; Halt. The program has completed its task.
Fig. 7.1 | Simpletron Machine Language (SML) operation codes. (Part 2 of 2.)
The first SML program (Fig. 7.2) reads two numbers from the keyboard and computes and
displays their sum. The instruction +1007 reads the first number from the keyboard and places it
into location 07 (which has been initialized to 0). Then instruction +1008 reads the next number
into location 08. The load instruction, +2007, puts the first number into the accumulator, and the
add instruction, +3008, adds the second number to the number in the accumulator. All SML arith-
metic instructions leave their results in the accumulator. The store instruction, +2109, places the result
back into memory location 09, from which the write instruction, +1109, takes the number and dis-
plays it (as a signed four-digit decimal number). The halt instruction, +4300, terminates execution.
00 +1007 (Read A)
01 +1008 (Read B)
02 +2007 (Load A)
03 +3008 (Add B)
04 +2109 (Store C)
05 +1109 (Write C)
06 +4300 (Halt)
07 +0000 (Variable A)
08 +0000 (Variable B)
09 +0000 (Result C)
Fig. 7.2 | SML program that reads two integers and computes their sum.
The second SML program (Fig. 7.3) reads two numbers from the keyboard and determines
and displays the larger value. Note the use of the instruction +4107 as a conditional transfer of con-
trol, much the same as Java’s if statement.
00 +1009 (Read A)
01 +1010 (Read B)
02 +2009 (Load A)
03 +3110 (Subtract B)
Fig. 7.3 | SML program that reads two integers and determines the larger.
© 2018 Pearson Education, Inc., 330 Hudson Street, NY NY 10013. All rights reserved.
Special Section: Building Your Own Computer 9
Fig. 7.3 | SML program that reads two integers and determines the larger.
Now write SML programs to accomplish each of the following tasks:
a) Use a sentinel-controlled loop to read 10 positive numbers. Compute and display their
sum.
ANS: Note: This program terminates when a negative number is input. The problem state-
ment should state that only positive numbers should be input.
b) Use a counter-controlled loop to read seven numbers, some positive and some negative,
and compute and display their average.
ANS:
© 2018 Pearson Education, Inc., 330 Hudson Street, NY NY 10013. All rights reserved.
10 Chapter 7 Arrays and ArrayLists
c) Read a series of numbers, and determine and display the largest number. The first num-
ber read indicates how many numbers should be processed.
© 2018 Pearson Education, Inc., 330 Hudson Street, NY NY 10013. All rights reserved.
Exploring the Variety of Random
Documents with Different Content
“Gain?” repeated Holmes. “Satisfaction, that’s all.” His eyes were
rolling wildly, and Buffalo Bill realized that he was confronting a half-
crazed enemy; and he was the more dangerous on that account.
But where was Wild Bill? He had had time to reach the peak, and
yet there was no sign of him.
While the king of scouts wondered at the nonappearance of his
old comrade, Holmes, holding the knife in a threatening attitude,
backed out of sight, and continued his ascent of the peak.
Buffalo Bill and his companions ran around the base to make a
discovery that at the moment gave them some satisfaction.
The villain’s progress had been stopped. There was a wide gap in
the rings; too wide to be covered by a leap.
The path Holmes with his burden had been pursuing terminated at
a narrow shelf over an almost vertical wall, which formed the back of
a small cove cut out of the base of the peak. The floor of the cove
was not smooth. Sharp, jagged sections of the rocky ledge upon
which the base rested pointed upward.
Rixton Holmes, standing perilously on the shelf, looked down, and
he gave a wild laugh as his eyes fell on the king of scouts, Bart
Angell, and Carl Henson. “The jig is up,” he shrieked. “Myra Wilton is
going into eternity, and I am going to follow her. I lose and you don’t
win.”
“I am going to fire,” said Henson in a husky whisper. “I—I can’t
stand this.”
“Wait,” sternly commanded Buffalo Bill. “If there is any shooting to
be done, it must be done by me.”
As he ceased speaking, Holmes raised the limp form of the girl
above his head.
“Down she goes,” he yelled, and, dazed with horror, Carl Henson
started back, his rifle held in a nerveless hand.
It was a frightful moment. Buffalo Bill, whose wits had not
deserted him, did not fire, though he might have done so. He
realized that a shot would not save the life of the girl, for her form
was held directly over the precipice, and that she would fall the
instant a bullet entered the brain of the fiend who held her.
Therefore, instead of firing, he leaped into the cove, braced
himself, and raised his hands.
There came a savage shout from above, and the next instant the
villain fell back on the ringing rocks with Wild Bill on top of him.
The intent of the tall scout had been good, but it did not suffice to
bring the girl from a position of deadly danger to one of safety.
The sudden descent of Wild Bill from above the shelf caused
Holmes to relax his grip on the form of his victim.
Her senses had returned a moment before Holmes lifted her
above his head. As the villain fell over under the weight of the
savagely excited scout, she slipped over the edge of the precipice.
But she did not fall to the bottom. She clutched at the uneven
surface of the side wall as she went, and halfway down her belt
caught on a projection, and she hung there, head and feet pointing
downward.
Her terrified eyes met the upturned gaze of the palefaced king of
scouts.
“Raise yourself if you can,” he shouted encouragingly, “and grip
that rock that has caught you.”
The attempt was made and was a failure. The girl was too weak
to exert more than a small portion of her normal strength.
“Rest a bit and try again,” counseled the scout. “If you can hold on
a few minutes, I’ll get you onto solid ground.”
“Can’t I do something?” said Carl Henson, his handsome face
twitching with agony.
“Yes,” was the quick response; “you can run to the ponies, where
Holmes left them, and get the reatas.”
The young man was off like a shot, but he never went as far as
the spot where the ponies had been secured. On his way he met
Bart Angell. The big backwoodsman had the reatas in his hand.
“I reckoned as how they’d shore be needed,” he said to Henson,
“an’ so I jest naterally made a bee line fer ther ponies without axin’
Cody’s permission.”
When Henson and Angell reached the cove Myra Wilton had
succeeded in gettin’ her hands on the rocky projection, and Wild Bill
was standing on the narrow shelf above.
“Hike up here with those reatas,” Wild Bill shouted.
“I’ll take them,” said Carl Henson quickly. “I can make better time
than you, Mr. Angell.”
Buffalo Bill would not leave his position under the girl. She might
fall at any moment. If she did, it might be death for him and her, for
there was a sheer drop of nearly fifty feet.
Bart Angell regarded the king of scouts gravely. Soon he was
standing behind his comrade. “Go away, Bart,” commanded Buffalo
Bill. “One is enough.”
“Maybe not, son,” was the firm reply. “If she comes, I’ll shore yank
you back ther minute she strikes your arms. Thataway we’ll save
some of ther pieces.”
The king of scouts tried to smile, but could not. Above him the girl
was swaying about the projection that was holding her.
“I can’t hold on much longer,” she said faintly, and her voice just
reached the ears of the king of scouts. “And if I let go with my
hands I must fall, for the belt has given way.”
“You must hold on,” came the reply as a command. “Help is on the
way.”
A shout from the shelf gave her courage. “I am here, Myra,” called
out Carl Henson tremulously. “I have got ropes, and they’ll be down
to you in a minute.” While he was speaking Wild Bill was twisting the
reatas. In the cove Buffalo Bill breathed a sigh of deepest relief.
The transition from torturing suspense to ardent hope was
scarcely set before Bart Angell screamed: “Look out, she is falling!”
He spoke the awful truth. Myra Wilton, turning to look up at her
lover, had broken off the end of projection of rock about which her
hands were clasped. If she had had wits about her she might have
saved herself from falling, but the accident unnerved her, and she
relaxed her hold on the solid, fixed, remaining section of the rock.
Carl Henson saw her fall, and would have leaped after her if Wild
Bill had not seized his arm in the nick of time.
The young man was struggling in the grasp of the tall scout, when
a joyous shout from the cove caused him to gaze into Wild Bill’s face
in utter bewilderment.
“A miracle, I reckon,” said the scout to the young man as they
both started for the shelf.
And a miracle, or something closely allied to one, had intervened
to save the life of Myra Wilton. Her lover, looking down, saw her safe
in the arms of Buffalo Bill.
She had not fallen straight from the projecting rock. There were
other projections on the side wall of the cove. She had caught at
them as she went down, and once her gown had held her up for a
few seconds. When at last she fell, to be received in the arms of the
king of scouts, she was not more than ten feet from the ground.
Five minutes later she was clasped to the breast of Carl Henson.
“A mighty close shave, Cody,” remarked Wild Bill, as he slapped his
old comrade on the back; “mighty close. I never expected to see
either you or her alive again.”
Buffalo Bill was sitting on a rock mopping his face. He was about
to make some sort of response, when Myra Wilton left her lover and
stood in front of him. First she smiled, and then impulsively leaned
over and kissed him.
“The debt is wiped out,” he said, as he took her two hands and
pressed them. “But”—he paused and smiled at Carl Henson—“you
must let me dance at your wedding.”
“You shall,” she responded, with a pretty blush.
The king of scouts now gave his mind to more serious concerns.
“How is it with Rixton Holmes?” he asked Wild Bill.
“It’s a case of dying, Cody. The fellow struck his cabesa on a sharp
rock when he fell, and the point became acquainted with his Sarah
Billium.”
“Can he talk?”
“Don’t know. I’ll bring him down for you.”
Bart Angell went with Wild Bill. They soon returned bearing the
limp form of the villainous cousin of Myra Wilton.
The wound was bandaged, and whisky was forced down his
throat.
Soon he opened his eyes and stared about him. He saw the girl he
had tried to murder, and he looked into the sober, reproachful
countenance of the king of scouts.
“Take the money,” he said faintly, and trying to conjure up a smile.
“I’ve lost.”
He was asked to make a full confession of his crimes.
“Life is too short for that,” he replied, “but I’ll tell something about
the mine affair. I would never have plotted to kill my three uncles if I
hadn’t bumped up against Tom Darke. He knew me as Rixton Clay,
and had no notion that I was related to the Holmeses. We became
card partners, and soon I knew all his secrets. One night when he
was pretty full he told me that he had come West for the purpose of
killing three men—Peter, Jared, and Matt Holmes. At that time
Peter’s mine was the talk of Colorado. There had been a rich
discovery, and the mine was worth millions.
“Well, I reflected, and soon the plot was born. Tom Darke killed
Peter and Jared, and he would have killed Matt if I had not taken the
job off his hands. I had to, for I was afraid that Darke’s gun would
miss fire and that Matt would get him.
“The letter that brought my Cousin Myra to New Mexico was
written by me. I had ingratiated myself with my Uncle Matt, and I
knew he had made a will, leaving his estate to me and Myra. His
estate then did not amount to much, but the estate of Peter did, and
when Peter and Jared died, Matt became the owner of the mine.
Before Myra arrived, Peter and Jared had crossed the divide.
“I could have come forward and claimed half the estate when my
three uncles were dead, but I was afraid that I would be arrested.
Although I had covered my tracks pretty well, I dared not face the
authorities. Therefore, my scheme at the last was to marry Myra,
compel her to give me the larger part of her share, and then light
out for foreign parts.
“I believe she was on the point of trusting me, when you, Mr.
Cody, was trapped in the cave. But I found when we got outside the
hole that I had caught a Tartar.”
His voice became so weak that it could scarcely be heard. More
whisky was administered.
“There is not much more for me to say,” the dying villain
proceeded. “I stole Crow-killer’s pony and trailed you and your
friends, Mr. Cody, to the Indian valley. I guessed your object. You
were on your way to rescue my cousin from the hands of the
Navahos. I determined to block that game if I could. I sneaked into
the village ahead of you, and just after dark got to Myra’s tepee, and
was lucky enough to find that no one was with her. I was once a
druggist, and I have always carried on my person a powerful and
peculiarly acting drug that was sent to me from the East Indies. This
drug will produce a sleep that resembles death. I had come to the
tepee prepared to work a bold design, and before I crawled away
the drug was in the hands of Myra, and she knew what to do.”
“How did you deceive her,” asked Buffalo Bill.
“I used your name. A note accompanied the vial that contained
the drug. The note was signed with your name, and informed her
that you were near by, and that her rescue was certain if she would
comply with your wish. She must swallow the contents of the vial. A
deep sleep would come, the Indians would look upon her as dead,
vigilance would be relaxed, and she could be carried away before
daybreak. I did not, of course, enter the tepee, but thrust my hand
under the wall of skins and made a slight noise to attract her
attention.
“The scheme worked better than I had planned. The rescue was
made with you, Mr. Cody, as my ally. The fight in the tepee was right
to my hand. Before it was over I was on my pony, with Myra in my
arms.
“If I used her roughly after she came to her senses, it was
because I was half insane with fear. You were in pursuit, I knew it,
and I knew, also, that I was doomed unless I got safely out of the
mountains.”
“Did Miss Wilton see me before you left the pony to run to the
peak?” asked Buffalo Bill. “She acted as if she did.”
“No, she did not see you, but she made me believe she did. Then
I must have gone wholly insane. I determined to kill her and then kill
myself.”
The tale was told. In a few minutes Rixton Holmes was dead.
Not many weeks later Myra Wilton and Carl Henson were married
in Denver. Wild Bill Hickok left his partner to engage in a hunting
expedition on the Continental Divide. Buffalo Bill, however, had much
else to attend to. He had scarcely finished his work in the Holmes
murder mystery before he had received a telegram from Colonel
Hayden, an army officer, requesting the aid of the king of scouts in
locating his beautiful daughter, who had been kidnaped by a
notorious bandit.
CHAPTER IX.
A MAN HUNT IN ARIZONA.
Buffalo Bill did not remain by the side of his victim and await the
return of sense. He made practical use of his time. He ate his
breakfast, risking a small fire for coffee.
While he was eating, the Apache opened his eyes. For some time
he regarded the placid-faced king of scouts with a deeply malevolent
expression. But when he spoke in the tongue of his tribe, the
expression had disappeared.
“Coffee for the great white warrior, cold water for Thunder Cloud.”
Buffalo Bill started, then looked at the Apache keenly. “So you are
the renowned Thunder Cloud, are you?” he inquired in the Indian
language.
The Apache nodded, and there was pride in his look.
“A chief,” the king of scouts went on reproachfully, “who stoops to
the work of the slinking, murderous brave. Thunder Cloud has
forfeited the respect of his foes.”
The Indian’s eyes blazed with anger. “The great white warrior
speaks without thought. Thunder Cloud was whipped like a dog by
the white captain, and now he is a chief without a tribe.”
“Yes, I heard of that whipping,” returned the king of scouts
cuttingly. “Thunder Cloud broke his parole, and Captain Foster
punished him.”
The Indian gnashed his teeth in savage recollection of the action
which had disgraced him in the eyes of the Americans.
There was silence for a few moments. Buffalo Bill broke it by
asking: “Would the chief like a cup of coffee?”
“Yes,” was the quick answer.
The coffee was drunk, and then the king of scouts, believing the
Indian to be in a fairly quiet frame of mind, said:
“Why did the chief kill Panecho, the Hualapi?”
Thunder Cloud frowned. He did not answer the question.
It was repeated, and with sternness. The Apache noted the
menacing expression in the scout’s eyes, and mumbled something
about an old feud.
“You are dodging the issue, Thunder Cloud,” said Buffalo Bill
sharply. “I must know the truth. You are in my power. Why should I
not kill you?”
The Indian shut his lips tightly. He was a stoic. “Why not?” he
repeated.
The king of scouts took a new tack. “What if I take you to the
village of the Hualapis and deliver you over to the brothers of
Panecho?”
Thunder Cloud shivered. “No, no,” he entreated. “Let the great
white warrior take his revenge. Thunder Cloud is content to die by
the hand of Buffalo Bill.”
The king of scouts appeared to seriously consider the matter. “I’ll
tell you what I will do,” he said, after a pause. “I will deal with you
myself, if you, on your part, will tell me what made you shoot
Panecho, and why you are in my camp, a spy.”
The Apache, who was without honor, and who would have
betrayed his best friend if he saw a chance of personal profit,
promptly replied: “Thunder Cloud killed Panecho because the
Hualapi was hot on the trail of Thunder Cloud’s friend.”
“Just as I supposed,” remarked Buffalo Bill quietly. “You have hired
yourself out to that white villain, Black-face Ned.”
Thunder Cloud nodded, and then in answer to another question
said that Colonel Hayden had been overcome while he was walking
along the trail.
Buffalo Bill guessed how the colonel had been caught. He had
arisen early and had gone down the cañon, hoping to come upon
the camp of the abductor of his daughter before the coming of
daylight. On the way he had been attacked by a sentinel posted by
the white outlaw, and was now in the power of the man he had so
much cause to hate and fear.
“How long has Black-face Ned been in camp?” the scout asked.
“Since yesterday morning.”
“Who is with him?”
“Three white men.”
This was unlooked-for intelligence. The king of scouts arose to his
feet. The situation had changed. It would not be safe to remain
longer in this open space. The four white men, all outlaws, so
Buffalo Bill believed, would not likely stay in camp longer than was
necessary for the return of Thunder Cloud, who had been sent up
the trail to ascertain who had come with Colonel Hayden.
After placing a gag in the Indian’s mouth, the scout concealed two
of the rifles, and with the third in his hand left the camp and stole
noiselessly toward the rendezvous of the enemy.
As he went forward he considered the statement the Indian had
made. Black-face Ned was with friends. Did he expect to find them
in the Hualapi hills when he set out across the desert? The scout
believed that the meeting had been prearranged. The three white
men were probably the members of Black-face Ned’s band who had
eluded capture when the band was broken up. The rendezvous in
the hills was an old one, and was probably off the trail and in a
secure place.
After an hour’s journey, Buffalo Bill heard a suspicious noise in the
bushes in front of him. He instantly left the trail, and, climbing the
hill, got behind a bowlder.
He was scarcely out of sight before two white men appeared on
the trail directly below him.
One was tall, lean, and angular, with a broken nose and an ugly
disfigurement of the lower lip. One-half of the lip was of treble the
thickness of the other half, and hung down so as to disclose the
teeth, which were long, yellow, and fanglike. The eyes were small
and piercing, and looked out under shaggy brows that were
contracted in a habitual scowl.
The other man was shorter in stature, had a round, red face, with
a happy-go-lucky expression. He was red-haired, and wore a shoe-
brush mustache. The tall man was smooth-faced.
The king of scouts recognized the men as two of the most
dangerous and desperate criminals in the West. Before their
association with Black-face Ned they had been allied with the border
ruffians of Kansas. In that State Buffalo Bill had met them, and the
short man bore upon his body the marks of a luckless encounter
with the king of scouts.
“Shorty Sands and Flag-pole Jack,” muttered the scout, under his
breath. “I’ll bet the third rascal is that sneak, Bat Wason. The three
were pards in the old Kansas days, and Wason was the slickest and
the most dangerous scoundrel of the trio.”
To the scout’s intense satisfaction, the desperadoes stopped at the
point of Buffalo Bill’s departure from the trail, and began an earnest
conversation.
“The Indian knows his biz,” said Shorty Sands, “and I’ll gamble he
has made a killin’. Thar’s shore no use in gittin’ skeered, fer Thunder
Cloud hed only a pigeon-hearted Hualapi ter contend with.”
“Don’t ye fool yerself,” responded Flag-pole Jack, with a deepening
of his scowl. “Ther ole kunnel war too foxy ter give away the hull
business. He allowed thar war only one man with him. Mebbe he
lied. Mebbe Thunder Cloud slipped his neck inter a trap when he
pranced inter the camp of ther kunnel. I ain’t plottin’ ter foller his
example. Not by a overwhelmin’ majority.”
“What’s yer idee?” inquired Sands.
“My idee is ter separate right hyer. One of us will keep on ther
trail, an’ ther t’other will crope up ther hill an’ git round ther camp.”
“All right,” said Sands. “I’ll take ther hill.”
The tall villain smiled contemptuously. “Aimin’ ter hit ther easiest
snap, aire ye? Well, take it, I don’t keer. Ther walkin’s better along
the trail.”
He might have added: “I’ll go mighty slow until I see how you
come out,” but he didn’t.
Shorty Sands was about to start, when a rattlesnake crawled out
of a hole in the bank, and, at sight of the outlaw, coiled and rattled.
The snake was between Buffalo Bill’s bowlder and the trail. Shorty
Sands uttered a cry, and then drew his revolver to fire. A warning
from his companion to desist came too late. The revolver cracked,
and the snake, unharmed, leaped its length toward the shooter.
Then it was that Buffalo Bill, excited by the shot, the meaning of
which he did not understand, showed his head. He saw the snake,
saw Flag-pole Jack taking aim to shoot, and was about to give
warning of his presence, so that the fight should be a fair one, when
a series of yelps, like those of wolves, made him quickly turn his
head.
The snake was dead as the two outlaws, as much amazed as the
king of scouts, looked up the bank.
There in two lines, of a dozen each, crouched a curious and
startling body of human beings. Each was arrayed in wolfskins, and
each face was masked with the face of a wolf.
But the long, black hair, that protruded below each wolfskin cap,
told Buffalo Bill that the strange newcomers were Indians.
While the scout and the outlaws stared at the wolfish crew, taking
note at the same time that each member was armed with rifle and
tomahawk, the leader cried out in good English: “Surrender or we
fire.”
The king of scouts looked down at Flag-pole Jack and Shorty
Sands. The outlaws now saw him for the first time, for, upon turning
to gaze up at the fantastic crew, he had withdrawn his head from in
front of the bowlder.
“Buffalo Bill!” gasped Shorty Sands. “We’re in for it now.” As he
spoke, he believed that the disguised Indians were allies of the
famous border fighter.
“Don’t make a mistake, Shorty,” said the scout coolly. “We are in
the same boat.” Then he added: “Go up, you two, and do the
surrender act. I’ll follow suit.”
“I’ll be hanged if I give in,” snarled Flag-pole Jack. “Hyer goes.” He
jumped down the bank, but a rifle bullet grazed his head before his
feet struck the ground. “That’s a reminder,” yelled the leader of the
Wolves sternly. “The next shot will be to kill.”
The outlaw, with many curses, returned to the trail.
As he was on the way, the Wolves marched down the hill.
Buffalo Bill was not foolhardy enough to try to make a stand
against two dozen armed enemies. He stood up, rifle grounded, and
smiled when the leader of the Wolves approached.
“Fine morning for ducks,” the scout remarked, as he tried to read
the expression of the eyes that looked out of the holes in the mask.
“And for lulus. You’re one, Cody, all right.”
Buffalo Bill started. The leader of this fantastic band was a white
man. “I failed to catch your name,” he said politely, as he craned his
head in the direction of the stranger.
The Wolf laughed. “The wind must have blown it away, I reckon,”
he replied shortly. Then he added brusquely: “Give up your arms to
my adjutant here, and place yourself in his hands.”
So saying, he marched down to the trail. Standing before the two
outlaws, he looked them over from head to foot. “Pards of Black-face
Ned, eh?” he said coldly.
No answer.
“Drop your guns!” The weapons struck the ground instanter. “Now
go up the hill and submit to be bound. No monkey business, or Ned
will be mourning your departure for a warmer clime than Arizona.”
With black brows, Sands and his companion obeyed the order.
Soon the three prisoners were conducted to the retreat of the
Wolves. It was at the head of a ravine about five miles south of the
cañon trail, and Buffalo Bill was surprised when he reached the spot.
It was forty feet above the bed of the ravine, and was nothing less
than one of the old habitations of the extinct cliff dwellers.
The wall into which the habitation had been cut was of irregular
formation, and nearly perpendicular. There seemed no way of
reaching the holes either from the top or the base of the ridge. But
there was a way to get up, and this passage was soon revealed.
Halting his band at a point directly below the holes in the rock, the
leader of the Wolves gave the hoot of an owl. A head showed at one
of the entrances, and as soon as it disappeared the leader marched
forward to a large bowlder that rested against the face of the wall.
With one hand he gave the huge rock a turn, and it swung back to
reveal an opening large enough for a man to enter without stooping.
Inside of a minute the king of scouts found himself in the chamber
of a cave. Upon the floor about the middle of the chamber was a
cage, such as is used by miners in underground journeyings, and
attached to it were stout ropes.
Looking up, the scout saw the opening through which the cage
had descended, and understood how entrance to the cliff dwellings
was obtained.
The prisoners were sent first, a windlass at the top furnishing the
motive power.
Buffalo Bill had been in many of these dwellings, and found the
one that received him to be like the others he had seen. All the
furniture was of stone, but to the utensils of the Aztecs had been
added many of the modern implements of easy, practical
convenience.
There were three large rooms, each provided with a cliff outlook,
and furnished with stone seats and a plethora of bear and buffalo
skins.
But one Wolf was in the dwelling to receive the prisoners. He was
an Indian, and never opened his mouth until the windlass had
performed its office.
He then addressed the leader in the tongue of a nation that had
been considered as practically extinct for many years.
“It is well,” he said.
“Comanche,” muttered Buffalo Bill, under his breath. “These reds
may turn out to be friends. Uncle Sam has had no trouble with them
for a long time. I didn’t know there was a single one of them in
Arizona.”
Shorty Sands and Flag-pole Jack were placed under guard in one
of the rooms. The king of scouts was taken to another, and soon
found himself alone with the leader.
The latter threw himself upon the stone floor near a couch of skins
that served as the resting place of the prisoner.
“Well,” he remarked slowly, “how does it strike you?”
“The situation?”
“Yes. Sort of puzzling, isn’t it?”
The voice was muffled, but Buffalo Bill was sure that he had heard
it before.
“Take off that wolf mask and let me see your face,” he said
persuasively. “You have got me in a hole, so that there need be no
further use for a disguise.”
“Think so?” was the imperturbable response.
“Yes. You know me, and I’ll bet a hat I know you. The question is,
are you an enemy or are you a friend?”
“Yes, that’s the question.” A pause, and then the quick inquiry:
“Have you ever heard of my outfit?”
“No.”
“We are the remnants of the bravest and most fearless nation of
redskins that ever made Uncle Sam sit up and take notice. The
disguise was adopted at the suggestion of the leader who preceded
me, and who was killed by a fall about a month ago. We are the
natural enemies of the Apaches, and Silver Moon, the dead one,
thought the Comanches could better work in wolfskin than in their
ordinary raiment.”
“What do you call yourselves?”
“The Yelping Crew. Appropriate name, isn’t it?”
“Very,” said Buffalo Bill dryly. The leader of the Crew lazily lighted
a cigarette, then tossed paper and tobacco pouch to the prisoner.
“We yelp to some purpose,” the strange man continued. “During
the last year we have wiped out seventy Apaches.”
“Then you cannot be an enemy of mine or an enemy of the United
States government?”
“No-o,” was the slow reply. “I am not your enemy, and yet I am
not quite ready to say I am your friend.”
“How can that be? You must be one thing or the other?”
“Let me explain,” returned the leader of the Yelping Crew
composedly. “You were found with two of the worst rascals in
America. These fellows, Flag-pole Jack and Shorty Sands—you see, I
know them—the pards of Black-face Ned, who is hand in glove with
the Apaches. Thunder Cloud is with Black-face Ned now.”
“Beg pardon,” interrupted Buffalo Bill quickly, “but you are in error
on two points. Thunder Cloud is not with Black-face Ned, and
Thunder Cloud has been cast out by the Apaches.”
“I may not have literally struck it when I said Thunder Cloud is
now with Ned,” replied the disguised white man calmly, “but I did
strike it when I said Ned is thick with the Apaches. The chief has not
been cast out by this tribe. He broke his parole, and was whipped
like a dog, but his tribe did not turn on him for a little thing like that.
On the contrary, his braves backed him up when he swore revenge.
He has plotted to kill the captain who ordered the lashes and the
colonel who approved the order.”
The king of scouts felt a cold chill strike his spine. “What is the
colonel’s name?” he asked.
“Hayden.”
A groan escaped the brave scout’s lips. The keen eyes behind the
wolf mask expressed both curiosity and sympathy.
There ensued a long pause. It was broken by Buffalo Bill.
Speaking abruptly, he said:
“I am putting you up to be a friend. I need a friend’s help. I not
only desire to be set at liberty, but I want your assistance. Will you
give it?”
The leader of the Yelping Crew laughed softly. “You are not very
modest in your demands,” he replied coolly.
“I am what I am,” rejoined the king of scouts sharply. Then he
went on quickly and earnestly: “Colonel Hayden is a prisoner in the
hands of Black-face Ned. Thunder Cloud is down in the cañon bound
hand and foot. I surprised him while he was trying to execute a
murderous order given him by Black-face Ned. The Indian must be
removed from the cañon or the outlaw will find and release him.”
The white chief of the Comanches arose to his feet. “Why did you
not tell me this before?” he asked.
“Could I tell you before I was sure you were in sympathy with my
cause?” was the cold reply.
“No, certainly not. You were wise to hold back your story. You
want my help in getting Colonel Hayden out of the clutches of Black-
face Ned and his Indian and white marauders and murderers. Well,
you shall have it. I never meant to keep you a prisoner. Your capture
was a joke.”
“A joke?”—gazing at the masked leader in astonishment. “Why
——”
A ringing laugh cut short the speech. “Fooled you to the limit, old
son. Never guessed the deception, did you?”
Buffalo Bill stared hard at the speaker. The truth was creeping into
his mind.
With one quick movement the wolf face was removed.
The king of scouts looked up into the smiling countenance of Wild
Bill Hickok.
CHAPTER XI.
AN OLD FRIEND REAPPEARS.
The two old-time partners and fellow scouts and Indian fighters
grasped hands, Wild Bill’s knife having quickly cut the thongs that
had held the prisoner’s wrists. After the handclasp, the king of
scouts was given the use of his feet.
Before entering upon an explanation, Wild Bill issued an order to
three of his Indians and they immediately set out to find Thunder
Cloud and convey him to the cliff.
“Now,” said Wild Bill, after the Comanches had departed, “I’ll try
to satisfy your curiosity.”
Buffalo Bill, seated on the couch of skins and smoking a fine cigar,
nodded. “You are in a curious position,” he said. “I can’t imagine
how you got into it.”
“Accident, Cody, put me where I am. I had been hunting over on
the Continental Divide when, unluckily, I provided myself with a
badly sprained ankle. I couldn’t travel, and I believe I would have
starved to death if one of the Yelping Crew had not seen and come
to my rescue. The band was far away from their stamping ground—
they had been out hunting like myself—and so I was brought here.
Their chief was dead, and there was no one in the band capable of
leading them. Some of them knew me by reputation, and when I
was well enough to get about, what do you think? I was asked to
become the chief, pro tem.”
“Pro tem?” repeated Buffalo Bill. “Why not permanently?”
“Because there was a Comanche in the line of succession. The
fellow was in Mexico, and a messenger had been sent there to notify
him that he could be chief of the Yelpers if he cared to undertake
the job.”
“You accepted—your position here shows that, Hickok. But what
induced you to do so?”
“A desire to assist the United States government. The Apaches are
giving trouble again, and the soldier boys are having hard work to
find them. Now, my Yelpers know all the Apaches’ holes, and they
are the sworn enemies of the Apaches. Already we have had one
brush with the enemy, and it was a win-out.”
“Why have you not descended on Black-face Ned and his gang?”
“For the very good reason that none of the gang were in this
neighborhood until two days ago. We are now preparing to light
down on the murderous outfit and wipe it off the face of the earth.”
Buffalo Bill, having heard Wild Bill’s explanation, astonished the
tall border fighter by telling him of the abduction of pretty Sybil
Hayden and the events of the past twenty-four hours.
“We must move just as soon as my Yelpers get back with Thunder
Cloud,” said Wild Bill resolutely. “I’ll make Thunder Cloud tell me
where the outlaws are, and if we don’t give them a hot surprise, I’ll
resign my job and go to herding squirrels.”
Before the expiration of an hour the three Comanches returned.
The Apache chief was not with them. They had found the camp of
Buffalo Bill, but it was deserted.
“Rescued by Black-face Ned,” was Buffalo Bill’s sour comment. “I
half expected it.”
In answer to questions put by Wild Bill, the spokesman of the trio
stated that two white men had gone away from the camp with
Thunder Cloud. The trail had been followed for a mile. There it
ended on the sandy shore of the creek.
“Took to the water,” said Wild Bill understandingly. “Never mind.
We’ll find them, for I have trailers who can match any Hualapi that
ever ate rattlesnakes.”
Welcome to our website – the perfect destination for book lovers and
knowledge seekers. We believe that every book holds a new world,
offering opportunities for learning, discovery, and personal growth.
That’s why we are dedicated to bringing you a diverse collection of
books, ranging from classic literature and specialized publications to
self-development guides and children's books.
testbankfan.com