100% found this document useful (3 votes)
37 views

Introduction to C++ Programming and Data Structures 4th Edition Liang Solutions Manual download

The document provides links to various solution manuals and test banks for C++ programming and other subjects. It includes a project description for a locker puzzle problem involving 100 lockers and 100 students, along with a sample C++ code solution. Additionally, it contains unrelated content about various species and illustrations.

Uploaded by

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

Introduction to C++ Programming and Data Structures 4th Edition Liang Solutions Manual download

The document provides links to various solution manuals and test banks for C++ programming and other subjects. It includes a project description for a locker puzzle problem involving 100 lockers and 100 students, along with a sample C++ code solution. Additionally, it contains unrelated content about various species and illustrations.

Uploaded by

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

Introduction to C++ Programming and Data

Structures 4th Edition Liang Solutions Manual


download

https://testbankfan.com/product/introduction-to-c-programming-
and-data-structures-4th-edition-liang-solutions-manual/

Explore and download more test bank or solution manual


at testbankfan.com
We have selected some products that you may be interested in
Click the link to download now or visit testbankfan.com
for more options!.

Introduction to Programming with C++ 3rd Edition Liang


Test Bank

https://testbankfan.com/product/introduction-to-programming-
with-c-3rd-edition-liang-test-bank/

C++ Programming Program Design Including Data Structures


7th Edition Malik Solutions Manual

https://testbankfan.com/product/c-programming-program-design-
including-data-structures-7th-edition-malik-solutions-manual/

C++ Programming Program Design Including Data Structures


8th Edition Malik Solutions Manual

https://testbankfan.com/product/c-programming-program-design-
including-data-structures-8th-edition-malik-solutions-manual/

Engineering Mechanics Of Solids 2nd Edition Popov


Solutions Manual

https://testbankfan.com/product/engineering-mechanics-of-solids-2nd-
edition-popov-solutions-manual/
Financial and Managerial Accounting 8th Edition Wild Test
Bank

https://testbankfan.com/product/financial-and-managerial-
accounting-8th-edition-wild-test-bank/

Business and Administrative Communication 11th Edition


Locker Test Bank

https://testbankfan.com/product/business-and-administrative-
communication-11th-edition-locker-test-bank/

Engineering Fundamentals and Problem Solving 7th Edition


Eide Solutions Manual

https://testbankfan.com/product/engineering-fundamentals-and-problem-
solving-7th-edition-eide-solutions-manual/

Prentice Halls Federal Taxation 2013 Corporations


Partnerships Estates and Trusts 26th Edition Pope
Solutions Manual
https://testbankfan.com/product/prentice-halls-federal-
taxation-2013-corporations-partnerships-estates-and-trusts-26th-
edition-pope-solutions-manual/

Canadian Tax Principles 2017 2018 1st Edition Byrd


Solutions Manual

https://testbankfan.com/product/canadian-tax-principles-2017-2018-1st-
edition-byrd-solutions-manual/
Essentials of Pharmacology for Health Professions 7th
Edition Woodrow Test Bank

https://testbankfan.com/product/essentials-of-pharmacology-for-health-
professions-7th-edition-woodrow-test-bank/
Student Name: __________________
Class and Section __________________
Total Points (20 pts) __________________
Due: August 29, 2016 before the class

Project: Locker Puzzle


Armstrong Atlantic State University

Problem Description:
A school has 100 lockers and 100 students. All lockers are closed on the first day of
school. As the students enter, the first student, denoted S1, opens every locker. Then the
second student, S2, begins with the second locker, denoted L2, and closes every other
locker. Student S3 begins with the third locker and changes every third locker (closes it if
it was open, and opens it if it was closed). Student S4 begins with locker L4 and changes
every fourth locker. Student S5 starts with L5 and changes every fifth locker, and so on,
until student S100 changes L100.

After all the students have passed through the building and changed the lockers, which
lockers are open? Write a program to find your answer.

(Hint: Use an array of 100 Boolean elements, each of which indicates whether a locker is
open (true) or closed (false). Initially, all lockers are closed.)

Analysis:
(Describe the problem including input and output in your own words.)

Design:
(Describe the major steps for solving the problem.)

1
Coding: (Copy and Paste Source Code here. Format your code using Courier 10pts)

Testing: (Describe how you test this program)

Submit the following items:

1. Print this Word file and Submit to me before the class on the due day

2. Compile, Run, and Submit to LiveLab as Exercise7_15 (you must submit the program
regardless whether it complete or incomplete, correct or incorrect)

Solution:

#include <iostream>
using namespace std;

int main()
{
// Declare a constant value for the number of lockers
const int NUMBER_OF_LOCKER = 100;

// Create an array to store the status of each array


2
// The first student closes all lockers
bool lockers[NUMBER_OF_LOCKER];
for (int i = 0; i < NUMBER_OF_LOCKER; i++) {
lockers[i] = false;
}

// Each student changes the lockers


for (int j = 1; j <= NUMBER_OF_LOCKER; j++) {
// Student Sj changes every jth clocker
// starting from the lockers[j - 1].
for (int i = j - 1; i < NUMBER_OF_LOCKER; i += j) {
lockers[i] = !lockers[i];
}
}

// Finds which one is open


for (int i = 0; i < NUMBER_OF_LOCKER; i++) {
if (lockers[i])
cout << "Locker " << (i + 1) << " is open" << endl;
}

return 0;
}

3
Other documents randomly have
different content
phalacra, n. sp.,

Fig. 12.
Peromelissa
calva, n. sp., × 300 1237

Fig. 13.
Sethochytris
triconiscus, n.
sp., × 300 1239

Fig. 14.
Micromelissa
bombus, n. sp., × 300 1235

PLATE 58.

Legion NASSELLARIA.

Order CYRTOIDEA.

Families T r i p o c y r t i d a , S e t h o c y r t i d a ,
P h o r m o c y r t i d a et T h e o c y r t i d a .
PLATE 58.
Tripocyrtida, Sethocyrtida,
Phormocyrtida et Theocyrtida.
Diam. Page.

Fig. 1.
Cecryphalium
sestrodiscus, n.
sp., × 400 1399
Apical view.

Fig. 2.
Cecryphalium
lamprodiscus, n.
sp., × 400 1398
Apical view.

Fig. 3.
Clathrocyclas
coscinodiscus,
n. sp., × 400 1389
Apical view.

Fig. 4.
Clathrocyclas
coscinodiscus,
n. sp., × 700 1389
The cephalis
alone, with
the two horns.

Fig. 5.
Clathrocyclas
semeles, n. sp., × 400 1388
Lateral view.
Fig. 6.
Sethoconus
capreolus, n.
sp., × 400 1291
Lateral view.

Fig. 7.
Lampromitra
quadricuspis, n.
sp., × 400 1214
Apical view.

Fig. 8.
Lampromitra
furcata, n. sp., × 400 1215
The collar
septum after
removal of the
cephalis.

Fig. 9.
Lampromitra
dendrocorona,
n. sp., × 400 1216
Apical view.

PLATE 59.

Legion NASSELLARIA.

Order CYRTOIDEA.
Families T r i p o c y r t i d a , P o d o c y r t i d a et
Phormocyrtida.

PLATE 59.
Tripocyrtida, Podocyrtida et
Phormocyrtida.
Diam. Page.

Fig. 1.
Lampromitra
huxleyi, n. sp., × 400 1215

Fig. 2.
Amphiplecta
callistoma, n.
sp., × 400 1224

Fig. 3.
Corocalyptra
agnesæ, n. sp., × 400 1323

Fig. 4.
Corocalyptra
emmæ, n. sp., × 400 1323
The shell
encloses the
trilobate
central
capsule, with
the trilobate
nucleus.

Fig. 5. × 400 1390


Clathrocyclas
cassiopejæ, n.
sp.,

Fig. 6.
Clathrocyclas
alcmenæ, n.
sp., × 400 1388

Fig. 7.
Clathrocyclas
latonæ, n. sp., × 400 1389
Apical view.

Fig. 8.
Diplocylas
bicorona, n. sp., × 400 1392

Fig. 9.
Clathrocyclas
ionis, n. sp., × 400 1389

Fig. 10.
Corocalyptra
elisabethæ, n.
sp., × 400 1323
Oblique apical
view of the
shell, with the
quadrilobate
central
capsule
enclosed.

Fig. 11.
Clathrocyclas
europæ, n. sp., × 400 1388
Apical view of
the shell, after
removal of the
cephalis.

Fig. 12.
Clathrocyclas
europæ, n. sp., × 400 1388
Central capsule,
seen from
above, with
the
quadrilobate
nucleus.

Fig. 13.
Clathrocyclas
danaës, n. sp., × 300 1388
Vertical section
through the
cephalis and
the
quadrilobate
central
capsule, with
the
quadrilobate
nucleus.

Fig. 14.
Clathrocyclas
danaës, n. sp., × 300 1388
Apical view of
the shell.
PLATE 60.

Legion NASSELLARIA.

Order CYRTOIDEA.

Family T r i p o c y r t i d a .

PLATE 60.
Tripocyrtida.
Diam. Page.

Fig. 1.
Dictyophimus
cienkowskii, n.
sp. (vel
Lamprotripus
squarrosus), × 300 1200
Shell seen from
the side.

Fig. 2.
Dictyophimus
bütschlii, n. sp.
(vel
Lamprotripus
horridus), × 300 1201

Fig. 3. × 400 1201


Dictyophimus
hertwigii, n. sp.
(vel
Lamprotripus
spinosus),
The cephalis of
the shell
includes the
central
capsule, with
three lobes
depending in
the pyramidal
thorax.

Fig. 4.
Dictyophimus
platycephalus,
n. sp., × 400 1198
Central capsule
with four
thoracic lobes,
each of which
contains an
oil-globule;
kidney-shaped
nucleus in the
cephalic lobe.

Fig. 5.
Dictyophimus
platycephalus,
n. sp., × 400 1198
Shell seen from
the side.

Fig. 6.
Dictyophimus
brandtii, n. sp., × 300 1198
Shell seen from
the base, with
the four large
pores of the
collar septum,
two minor
jugular and
two major
cardinal pores.

Fig. 7.
Lampromitra
coronata, n. sp., × 400 1214
Shell seen from
below, with
the
quadrilobate
central
capsule.

Fig. 7a. A
portion of the
shell-margin, × 800 1214

Fig. 8.
Lampromitra
arborescens, n.
sp., × 400 1216
Shell from
above.

Fig. 8a. The


collar septum
with the four
crossed rods of
the cortina, × 400 1216
Fig. 9.
Tripocyrtis
plectaniscus, n.
sp., × 400 1202

Fig. 10.
Tripocyrtis
plagoniscus, n.
sp., × 400 1201

PLATE 61.

Legion NASSELLARIA.

Order CYRTOIDEA.

Family T r i p o c y r t i d a .
PLATE 61.
Tripocyrtida.
Diam. Page.

Fig. 1.
Dictyophimus
cortina, n. sp., × 400 1197

Fig. 2.
Lychnocanium
pudicum, n. sp., × 200 1230

Fig. 3.
Dictyophimus
longipes, n. sp., × 400 1197

Fig. 4.
Lychnocanium
clavigerum, n.
sp., × 300 1230

Fig. 5.
Dictyophimus
lasanum, n. sp., × 300 1197

Fig. 6.
Lychnocanium
favosum, n. sp., × 300 1225

Fig. 7.
Lychnocanium
lanterna, n. sp., × 300 1224

Fig. 8. × 300 1196


Dictyophimus
plectaniscus, n.
sp.,
Apical view.

Fig. 9.
Dictyophimus
plectaniscus, n.
sp., × 300 1196
Lateral view.

Fig. 10.
Lychnocanium
fenestratum, n.
sp., × 400 1228

Fig. 11.
Lychnocanium
pyriforme, n.
sp., × 300 1225

Fig. 12.
Lychnocanium
fortipes, n. sp., × 300 1227

Fig. 13.
Lychnocanium
tuberosum, n.
sp., × 300 1227

Fig. 14.
Lychnocanium
nodosum, n.
sp., × 300 1225

Fig. 15. × 400 1228


Lychnocanium
sigmopodium,
n. sp.,

Fig. 16.
Dictyophimus
pyramis, n. sp., × 300 1196

Fig. 17.
Dictyophimus
triserratus, n.
sp., × 300 1200

PLATE 62.

Legion NASSELLARIA.

Order CYRTOIDEA.

Families A n t h o c y r t i d a , S e t h o c y r t i d a et
Phormocyrtida.
PLATE 62.
Anthocyrtida, Sethocyrtida et
Phormocyrtida.
Diam. Page.

Fig. 1.
Dictyocephalus
australis, n. sp., × 300 1306

Fig. 2.
Dictyocephalus
mediterraneus,
n. sp., × 300 1307

Fig. 3.
Sethamphora
costata, n. sp.
(vel
Dictyocephalus
costatus), × 300 1251

Fig. 4.
Dictyocephalus
amphora, n. sp., × 400 1305

Fig. 5.
Cycladophora (?)
favosa, n. sp. (an
Dictyocephalus?), × 400 1380

Fig. 6.
Cycladophora (?)
favosa, n. sp. (an
Dictyocephalus?), × 400 1380
A variety with
obliterated ribs
(?).

Fig. 7.
Dictyocephalus
globiceps, n. sp., × 400 1308

Fig. 8.
Sethocorys
achillis, n. sp., × 400 1301

Fig. 9.
Sethocyrtis
oxycephalis, n.
sp., × 400 1299

Fig. 10.
Sethocorys
odysseus, n. sp., × 400 1302

Fig. 11.
Sethocyrtis
agamemnonis, n.
sp., × 300 1300
Seen from above
(apical view).

Fig. 11A.
Sethocyrtis
agamemnonis, n.
sp., × 300 1300
Seen from above,
after removal
of the cephalis.
Fig. 12.
Anthocyrtium
pyrum, n. sp., × 400 1276

Fig. 13.
Anthocyrtis
ovata, n. sp., × 300 1272

Fig. 14.
Anthocyrtium
chrysanthemum,
n. sp × 400 1272

Fig. 15.
Anthocyrtidium
ligularia, n. sp., × 400 1278

Fig. 16.
Anthocyrtidium
cineraria, n. sp., × 400 1278

Fig. 17.
Anthocyrtium
campanula, n.
sp., × 400 1274

Fig. 18.
Anthocyrtium
doronicum, n.
sp., × 300 1276

Fig. 19.
Anthocyrtium
flosculus, n. sp., × 300 1277
Fig. 20.
Anthocyrtium
adonis, n. sp., × 300 1273

Fig. 21.
Sethoconus
anthocyrtis, n.
sp. (vel
Anthocyrtium
sethoconium), × 300 1296

PLATE 63.

Legion NASSELLARIA.

Order CYRTOIDEA.

Family T r i p o c y r t i d a .
PLATE 63.
Tripocyrtida.
Diam. Page.

Fig. 1. Callimitra
carolotæ, n. sp., × 400 1217
Lateral view.

Fig. 2. Callimitra
annæ, n. sp., × 400 1217
Dorsal view.

Fig. 3. Callimitra
emmæ, n. sp., × 300 1218
Lateral view.

Fig. 4. Callimitra
emmæ, n. sp., × 400 1218
Cephalis alone,
with the
enclosed four-
lobed central
capsule, and
the internal
four divergent
beams;
surrounded by
some
scattered
xanthellæ.

Fig. 5. Callimitra
agnesæ, n. sp., × 400 1217
Dorsal view.
Fig. 6. Callimitra
elisabethæ, n.
sp., × 400 1218
Lateral view.

Fig. 7. Callimitra
carolotæ, n. sp., × 200 1217
Seen from above
(from the
apical pole).

Fig. 8. Callimitra
carolotæ, n. sp., × 200 1217
Seen from below
(from the
basal pole).

PLATE 64.

Legion NASSELLARIA.

Order CYRTOIDEA.

Families T r i p o c y r t i d a et P o d o c y r t i d a .
PLATE 64.
Tripocyrtida et Podocyrtida.
Diam. Page.

Fig. 1.
Clathrocanium
sphærocephalum,
n. sp., × 600 1211

Fig. 2.
Clathrocanium
diadema, n. sp., × 600 1212

Fig. 3.
Clathrocanium
triomma, n. sp., × 600 1211

Fig. 4.
Clathrocanium
reginæ, n. sp., × 600 1212

Fig. 5.
Clathrolychnus
araneosus, n. sp., × 600 1240

Fig. 6.
Clathrolychnus
periplectus, n.
sp., × 600 1241

Fig. 7.
Pteropilium
clathrocanium, n.
sp., × 400 1327
Fig. 8.
Clathrocorys
murrayi, n. sp., × 600 1219

Fig. 9.
Clathrocorys
giltschii, n. sp., × 600 1220

Fig. 10.
Clathrocorys
teuscheri, n. sp., × 600 1220

PLATE 65.

Legion NASSELLARIA.

Order CYRTOIDEA.

Family P h o r m o c y r t i d a .
PLATE 65.
Phormocyrtida.
Diam. Page.

Fig. 1. Alacorys
friderici, n. sp.
(vel Hexalacorys
friderici), × 400 1372
The central
capsule,
enclosed in
the
fenestrated
shell, exhibits
in its lower
half four large
club-shaped
lobes, each of
which includes
in its upper
part a large
oil-globule.
The
uppermost,
undivided part
of the capsule
includes the
nucleus,
which
protrudes four
small nuclear
lobes through
the four holes
of the cortinar
septum into
the thorax.
Numerous
long
pseudopodia
arise from the
granular
sarcomatrix,
which the
capsule
surrounds,
and pass
through the
pores of the
siliceous shell.

Fig. 2. Alacorys
guilelmi, n. sp.
(vel Hexalacorys
guilelmi), × 300 1372

Fig. 3. Alacorys
bismarckii, n.
sp. (vel
Pentalacorys
bismarckii), × 200 1372

Fig. 4. Alacorys
lutheri, n. sp.
(vel Tetralacorys
lutheri), × 400 1370

Fig. 5.
Cycladophora
goetheana, n.
sp. (vel
Lampterium
goetheanum), × 300 1376

PLATE 66.
Legion N A S S E L L A R I A .

Order CYRTOIDEA.

Family T h e o c y r t i d a .

PLATE 66.
Theocyrtida.
Diam. Page.

Fig. 1.
Tricolocapsa
theophrasti, n.
sp., × 400 1432

Fig. 2.
Tricolocapsa
schleidenii, n.
sp., × 300 1433

Fig. 3.
Tricolocapsa
dioscoridis, n.
sp., × 300 1432

Fig. 4.
Tricolocapsa
decandollei, n.
sp., × 300 1433

Fig. 5. × 400 1432


Tricolocapsa
linnæi, n. sp.,

Fig. 6.
Theocapsa
aristotelis, n.
sp., × 300 1427

Fig. 7.
Theocapsa
mülleri, n. sp., × 400 1431

Fig. 8.
Theocapsa
democriti, n.
sp., × 400 1427

Fig. 9.
Theocapsa
forskalii, n. sp., × 400 1429

Fig. 10.
Theocapsa
cuvieri, n. sp., × 400 1430

Fig. 11.
Theocapsa
wottonis, n. sp., × 400 1428

Fig. 12.
Theocapsa
darwinii, n. sp., × 300 1431

Fig. 13.
Theocapsa
linnæi, n. sp., × 400 1429
Fig. 14.
Theocapsa
wolffii, n. sp., × 400 1429

Fig. 15.
Theocapsa
malpighii, n. sp., × 400 1428

Fig. 16.
Theocapsa
lamarckii, n. sp., × 400 1430

Fig. 17.
Tricolocampe
amphizona, n.
sp., × 400 1413

Fig. 18.
Theocampe
collaris, n. sp., × 300 1425

Fig. 19.
Tricolocampe
polyzona, n. sp., × 400 1412

Fig. 20.
Tricolocampe
stenozona, n.
sp., × 400 1413

Fig. 21.
Tricolocampe
cylindrica, n.
sp., × 300 1412
Fig. 22.
Tricolocampe
urnula, n. sp., × 400 1422

Fig. 23.
Theocampe
stenostoma, n.
sp., × 300 1423

Fig. 24.
Theocampe
costata, n. sp., × 300 1424

Fig. 25.
Theocampe
sphærothorax,
n. sp., × 300 1424

PLATE 67.

Legion NASSELLARIA.

Order CYRTOIDEA.

Family P o d o c y r t i d a .
PLATE 67.
Podocyrtida.
Diam. Page.

Fig. 1.
Lithornithium
falco, n. sp., × 400 1355

Fig. 2.
Lithornithium
fringilla, n. sp., × 400 1355

Fig. 3.
Lithornithium
ciconia, n. sp., × 400 1354

Fig. 4.
Lithornithium
trochilus, n. sp., × 400 1355

Fig. 5. Theopera
fusiformis, n.
sp., × 400 1357

Fig. 6. Theopera
chytropus, n.
sp., × 400 1358

Fig. 7. Theopera
prismatica, n.
sp., × 300 1357

Fig. 8. Theopera
cortina, n. sp., × 400 1358
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.

More than just a book-buying platform, we strive to be a bridge


connecting you with timeless cultural and intellectual values. With an
elegant, user-friendly interface and a smart search system, you can
quickly find the books that best suit your interests. Additionally,
our special promotions and home delivery services help you save time
and fully enjoy the joy of reading.

Join us on a journey of knowledge exploration, passion nurturing, and


personal growth every day!

testbankfan.com

You might also like