Readings from Programming with C++ 1st Edition Kyla Mcmullen - eBook PDF 2024 scribd download
Readings from Programming with C++ 1st Edition Kyla Mcmullen - eBook PDF 2024 scribd download
https://ebookluna.com/download/readings-from-programming-with-c-ebook-
pdf/
ebookluna.com
https://ebookluna.com/download/programming-with-stm32-getting-started-
with-the-nucleo-board-and-c-c-ebook-pdf/
ebookluna.com
https://ebookluna.com/product/ebook-pdf-programming-problem-solving-
and-abstraction-with-c/
ebookluna.com
https://ebookluna.com/download/programming-in-c-ebook-pdf/
ebookluna.com
(eBook PDF) C++ Programming: From Problem Analysis to
Program Design 7th
https://ebookluna.com/product/ebook-pdf-c-programming-from-problem-
analysis-to-program-design-7th/
ebookluna.com
https://ebookluna.com/product/original-pdf-c-programming-from-problem-
analysis-to-program-design-8th/
ebookluna.com
https://ebookluna.com/download/c-programming-from-problem-analysis-to-
program-design-ebook-pdf/
ebookluna.com
https://ebookluna.com/download/programming-and-problem-solving-with-
python-ebook-pdf/
ebookluna.com
https://ebookluna.com/product/ebook-pdf-starting-out-with-c-from-
control-structures-to-objects-9th-edition/
ebookluna.com
Programming with
Copyright 2022 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 2022 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.
Readings from Programming with C++ © 2022 Cengage Learning, Inc.
Kyla McMullen, Elizabeth Matthews, WCN: 02-300
June Jamrich Parsons
Unless otherwise noted, all content is © Cengage.
SVP, Higher Education Product Management:
ALL RIGHTS RESERVED. No part of this work covered by the copyright herein
Erin Joyner
may be reproduced or distributed in any form or by any means, except as
VP, Product Management: Thais Alencar permitted by U.S. copyright law, without the prior written permission of the
copyright owner.
Product Team Manager: Kristin McNary
Associate Product Manager: Tran Pham For product information and technology assistance, contact us at
Cengage Customer & Sales Support, 1-800-354-9706
Product Assistant: Tom Benedetto
or support.cengage.com.
Learning Designer: Mary Convertino
Senior Content Manager: Maria Garguilo For permission to use material from this text or product, submit all requests
online at www.cengage.com/permissions.
Digital Delivery Lead: David O’Connor
Marketing Development Manager: Cengage is a leading provider of customized learning solutions with
Samantha Best employees residing in nearly 40 different countries and sales in more than
125 countries around the world. Find your local representative at
Product Specialist: Mackenzie Paine
www.cengage.com.
IP Analyst: Ashley Maynard
To learn more about Cengage platforms and services, register or access
IP Project Manager: Cassidie Parker your online learning solution, or purchase materials for your course, visit
www.cengage.com.
Production Service: SPi Global
Notice to the Reader
Designer: Erin Griffin Publisher does not warrant or guarantee any of the products described
Cover Image Source: echo3005/ShutterStock.com herein or perform any independent analysis in connection with any of the
product information contained herein. Publisher does not assume, and
expressly disclaims, any obligation to obtain and include information other
than that provided to it by the manufacturer. The reader is expressly warned
to consider and adopt all safety precautions that might be indicated by the
activities described herein and to avoid all potential hazards. By following
the instructions contained herein, the reader willingly assumes all risks in
connection with such instructions. The publisher makes no representations or
warranties of any kind, including but not limited to, the warranties of fitness
for particular purpose or merchantability, nor are any such representations
implied with respect to the material set forth herein, and the publisher takes
no responsibility with respect to such material. The publisher shall not be
liable for any special, consequential, or exemplary damages resulting, in
whole or part, from the readers’ use of, or reliance upon, this material.
Printed in Mexico
Print Number: 01 Print Year: 2020
Copyright 2022 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
prefacexiii Module 17
Polymorphism 309
Module 1
Computational Thinking 1 Module 18
Templates 319
Module 2
Programming Tools 15 Module 19
Linked List Data Structures 333
Module 3
Literals, Variables, and Constants 35 Module 20
Stacks and Queues 353
Module 4
Numeric Data Types and Expressions 49 Module 21
Trees and Graphs 371
Module 5
Character and String Data Types 63 Module 22
Algorithm Complexity and Big-O Notation 395
Module 6
Decision Control Structures 83 Module 23
Search Algorithms 411
Module 7
Repetition Control Structures 103 Module 24
Sorting Algorithms 427
Module 8
Arrays 125 Module 25
Processor Architecture 455
Module 9
Functions 145 Module 26
Data Representation 469
Module 10
Recursion 165 Module 27
Programming Paradigms 491
Module 11
Exceptions 185 Module 28
User Interfaces 507
Module 12
File Operations 205 Module 29
Software Development Methodologies 525
Module 13
Classes and Objects 231 Module 30
Pseudocode, Flowcharts, and Decision Tables 541
Module 14
Methods 245 Module 31
Unified Modeling Language 557
Module 15
Encapsulation 271
GLOSSARY 569
Module 16 Index 583
Inheritance 291
Copyright 2022 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
Copyright 2022 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 v
Module 4 Module 6
Numeric Data Types and Decision Control
Expressions 49 Structures 83
Primitive Data Types 50 If-Then Control Structures 84
Data Types 50 Control Structures 84
Primitive Data Types 50 Decision Logic 85
Composite Data Types 51 If-Then Structures 85
Numeric Data Types 52 Relational Operators 87
Integer Data Types 52 The Equal Operator 87
Floating-Point Data Types 53 Using Relational Operators 88
Mathematical Expressions 54 Boolean Expressions and Data Types 89
Arithmetic Operators 54 Multiple Conditions 91
Order of Operations 56 If-Then-Else Structures 91
Compound Operators 56 Nested-If Structures 93
Numeric Data Type Conversion 58 Else If Structures 96
Convert Integers and Floating-Point Numbers 58 Fall Through 97
Rounding Quirks 59 Conditional Logical Operators 100
Formatting Output 60 The AND Operator 100
Formatted Output 60 The OR Operator 101
Formatting Parameters 60 Summary 102
Summary 62 Key Terms 102
Key Terms 62
Module 7
Module 5 Repetition Control
CHARACTER AND STRING DATA TYPES 63 Structures 103
Character Data Types 64 Count-Controlled Loops 104
Working with Character Data 64 Loop Basics 104
Character Memory Allocation 65 Control Statements 105
Digits 66 For-Loops 105
Character Output Format 67 User-Controlled Loops 108
Character Manipulation 68
Counters and Accumulators 109
String Data Types 69 Loops That Count 109
Working with String Data 69 Loops That Accumulate 111
Escape Characters 70
String Indexes 71
Nested Loops 112
Loops Within Loops 112
String Functions 72
Inner and Outer Loops 113
String Manipulation 72
String Length 72 Pre-Test Loops 116
Change Case 73 While-Loops 116
Find the Location of a Character 74 Infinite Loops 117
Retrieve a Substring 75 Breaking Out of Loops 118
Concatenation and Typecasting 76 Post-Test Loops 120
Concatenated Output 76 Do-Loops 120
Concatenated Variables 77 Test Conditions and Terminating
Coercion and Typecasting 78 Conditions 123
Summary 80 Summary 124
Key Terms 81 Key Terms 124
Copyright 2022 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 Programming with C++
Copyright 2022 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 vii
Reading from a File 216 Method Cascading and Method Chaining 263
Opening a File for Reading 216 Calling Multiple Methods on the Same Object 263
Reading from a File 218 Using Constructors 266
Closing a File 222 Specifying How to Construct an Object 266
Closing Files after Use 222 Constructing an Object from Another Object 268
Trying to Close a File 222 Summary 269
Creating and Writing New Files 222
Key Terms 269
Creating a File 222
Opening a File for Writing 223 Module 15
Writing to and Appending a File 224
Anticipating Exceptions 228 Encapsulation 271
Summary 229 Components of Class Structure 271
Key Terms 230 Data Hiding 271
Designing Objects 273
Self-Reference Scope 276
Module 13 Accessor and Mutator Context 277
Classes and Objects 231 Viewing Data from an Object 277
Classes in Object-Oriented Programming 232 Changing Data in an Object 278
Representing the Real World with Code 232 Using Constructors 280
Using Classes 232 Parameters and Arguments 280
Class Components 233 Default Parameters and Constructor
Using Objects 236 Overloading 281
Creating Objects 236 Encapsulation Enforcement
Objects as Variables 238 with Access Modifiers 283
Object-Oriented Features and Principles 238 Access Modifiers 283
Using Static Elements in a Class 239 Public Variables and Methods 283
Private Variables and Methods 284
Static Member Variables 239
Static Methods 240 Interfaces and Headers 286
Static Classes 241 Interfaces 286
Characteristics of Objects Programming an Interface 287
in Object-Oriented Programs 242 Summary 290
Object Identity 242 Key Terms 290
Object State 242
Object Behavior 243 Module 16
Summary 244 Inheritance 291
Key Terms 244 Using Inheritance 291
Creating Classes from Other Classes 291
Module 14 Family Trees in OOP 292
Methods 245 Levels of Access 295
Necessary Components for Inheritance 296
Using Methods 245
Defining a Parent Class 296
Why Use Methods? 245 Defining a Child Class 297
Anatomy of a Method 251
Creating a Child Class That Inherits
Using Methods 251
from a Parent Class 298
Changing the Default Behavior
Inheritance Syntax 298
of an Object 255 Customizing Behavior 301
Using Objects as Regular Variables 255
Overloading Methods 258 Summary 307
Setting One Object to Equal Another 262 Key Terms 307
Copyright 2022 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 Programming with C++
Copyright 2022 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.
Visit https://ebookluna.com
now to explore a diverse
collection of ebooks available
in formats like PDF, EPUB, and
MOBI, compatible with all
devices. Don’t miss the chance
to enjoy exciting offers and
quickly download high-quality
materials in just a few simple
steps!
Table of Contents ix
Copyright 2022 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 Programming with C++
Copyright 2022 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
Module 31
Unified Modeling Language 557
Purpose of Unified Modeling
Language (UML) 557
Communicating Ideas to Other Programmers 557
Copyright 2022 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 2022 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.
Preface
Copyright 2022 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 2022 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.
About the Authors
Dr. Kyla McMullen is a tenure-track faculty member published research in the areas of procedural genera-
in the University of Florida’s Computer & Information tion, video game enjoyment factors, and freshwater
Sciences & Engineering Department, specializing in algae identification with HCI.
Human-Centered Computing. Her research interests June Jamrich Parsons is an educator, digital book
are in the perception, applications, and development pioneer, and co-author of Texty and McGuffey Award-
of 3D audio technologies. Dr. McMullen has authored winning textbooks. She co-developed the first com-
over 30 manuscripts in this line of research and is the mercially successful multimedia, interactive digital
primary investigator for over 2 million dollars’ worth textbook; one that set the bar for platforms now
of sponsored research projects. being developed by educational publishers. Her
Dr. Elizabeth A. Matthews is an Assistant Professor of career includes extensive classroom teaching, prod-
Computer Science at Washington and Lee University. uct design for eCourseware, textbook authoring for
She has taught computer science since 2013 and has Course Technology and Cengage, Creative Strategist
been an active researcher in human–computer inter- for MediaTechnics Corporation, and Director of Con-
action and human-centered computing. Matthews has tent for Veative Virtual Reality Labs.
Copyright 2022 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 2022 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.
Acknowledgments
The unique approach for this book required a seasoned friends who help me to remain sane, remind me of who
team. Our thanks to Maria Garguilo who ushered the I am, and never let me forget whose I am.
manuscripts through every iteration and kept tight Elizabeth Matthews: I want to thank my parents,
rein on the schedule; to Mary E. Convertino who sup- Drs. Geoff and Robin Matthews, for their support and
plied her expertise in learning design; to Lisa R
uffolo understanding in my journey. I would also like to thank
for her excellent developmental edit; to Courtney my advisor, Dr. Juan Gilbert, for seeing my dream to
Cozzy who coordinated the project; to Kristin McNary the end. Finally, I would like to thank my cats, Oreo
for her leadership in Cengage’s computing materials; and Laptop, who made sure that writing this book was
to Rajiv Malkan (Lone Star College) for his instruc- interrupted as often as possible.
tional input; to Wade Schofield (Liberty University) June Jamrich Parsons: Computer programming can
for his reviewing expertise; and to John Freitas for his be a truly satisfying experience. The reward when a
meticulous code review. It was a pleasure to be part program runs flawlessly has to bring a smile even
of this professional and talented team. We hope that to the most seasoned programmers. Working with
instructors and students will appreciate our efforts three programming languages for this project at the
to provide this unique approach to computer science same time was certainly challenging but provided
and programming. insights that can help students understand com-
Kyla McMullen: Above all things, I would like to thank putational thinking. I’ve thoroughly enjoyed work-
God for giving me the gifts and talents that were uti- ing with the team to create these versatile learning
lized to write this book. I would like to thank my amaz- resources and would like to dedicate my efforts to
ing husband Ade Kumuyi for always being my rock, my mom, who has been a steadfast cheerleader for
sounding board, and biggest cheerleader. I thank my me throughout my career. To the instructors and stu-
parents, Rita and James McMullen for all of their sacri- dents who use this book, my hope is that you enjoy
fices to raise me. Last but not least, I thank my spirited programming as much as I do.
Copyright 2022 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 2022 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.
Visit https://ebookluna.com
now to explore a diverse
collection of ebooks available
in formats like PDF, EPUB, and
MOBI, compatible with all
devices. Don’t miss the chance
to enjoy exciting offers and
quickly download high-quality
materials in just a few simple
steps!
MODULE
1
COMPUTATIONAL
THINKING
LEARNING OBJECTIVES:
1.1 ALGORITHMS 1.2.3 Differentiate the concepts of algorithms and
decomposition.
1.1.1 Define the term “algorithm” as a series of steps for
solving a problem or carrying out a task. 1.2.4 Identify examples of structural decomposition.
1.1.2 State that algorithms are the underlying logic for 1.2.5 Identify examples of functional decomposition.
computer programs. 1.2.6 Identify examples of object-oriented decomposition.
1.1.3 Define the term “computer program.” 1.2.7 Provide examples of decomposition in technology
1.1.4 Provide examples of algorithms used in everyday applications.
technology applications. 1.2.8 Explain how dependencies and cohesion relate to
1.1.5 Confirm that there can be more than one algorithm decomposition.
for a task or problem and that some algorithms 1.3 PATTERN IDENTIFICATION
may be more efficient than others.
1.3.1 Define the term “pattern identification” as a technique
1.1.6 Explain why computer scientists are interested in for recognizing similarities or characteristics among
algorithm efficiency. the elements of a task or problem.
1.1.7 List the characteristics of an effective algorithm. 1.3.2 Identify examples of fill-in-the-blank patterns.
1.1.8 Write an algorithm for accomplishing a simple, 1.3.3 Identify examples of repetitive patterns.
everyday technology application.
1.3.4 Identify examples of classification patterns.
1.1.9 Write an alternate algorithm for an everyday
technology task. 1.3.5 Provide examples of pattern identification in the real
world and in technology applications.
1.1.10 Select the more efficient of the two algorithms you
have written. 1.4 ABSTRACTION
1.2 DECOMPOSITION 1.4.1 Define the term “abstraction” as a technique for
generalization and for simplifying levels of complexity.
1.2.1 Define the term “decomposition” as a technique for
dividing a complex problem or solution into smaller 1.4.2 Explain why abstraction is an important computer
parts. science concept.
1.2.2 Explain why decomposition is an important tool for 1.4.3 Provide an example illustrating how abstraction can
computer scientists. help identify variables.
Copyright 2022 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.
2 PROGRAMMING WITH C++
1.4.4 Provide examples of technology applications that 1.4.6 Explain how the black box concept is an
have abstracted or hidden details. implementation of abstraction.
1.4.5 Provide an example illustrating the use of a class as 1.4.7 Identify appropriate levels of abstraction.
an abstraction of a set of objects.
1.1 ALGORITHMS
Algorithm Basics (1.1.1, 1.1.4)
A password might not be enough to protect your online accounts. Two-factor authentication adds an extra layer
of protection. A common form of two-factor authentication sends a personal identification number (PIN) to your
cell phone. To log in, you perform the series of steps shown in Figure 1-1.
The procedure for two-factor authentication is an example of an algorithm. In a general sense, an algorithm
is a series of steps for solving a problem or carrying out a task.
Algorithms exist for everyday tasks and tasks that involve technology. Here are some examples:
Copyright 2022 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.
Module 1 Computational Thinking 3
Q Programming algorithms tell the computer what to do. Can you tell which of these algorithms
is a programming algorithm?
Algorithm 1: Algorithm 2:
Connect to the website’s login page. Prompt the user to enter a user ID.
Enter your user ID. Prompt the user to enter a password.
Enter your password. Make sure that the user ID and password match.
Wait for a text message containing a PIN to If the user ID and password match:
arrive on your smartphone. Generate a random PIN.
On the website’s login page, enter the PIN. Send the PIN to user’s phone.
Prompt the user to enter the PIN.
If the PIN is correct:
Allow access.
A Algorithm 1 is not a programming algorithm because it outlines instructions for the user.
Algorithm 2 is a programming algorithm because it specifies what the computer is supposed
to do. When you formulate a programming algorithm, the instructions should be for the
computer, not the user.
There can be more than one programming algorithm for solving a problem or performing a task, but some
algorithms are more efficient than others.
Q Here are two algorithms for summing the numbers from 1 to 10. Which algorithm is more
efficient?
Algorithm 1: Algorithm 2:
Add 1 1 2 to get a total. Get the last number in the series (10).
Repeat these steps nine times: Divide 10 by 2 to get a result.
Get the next number. Add 10 1 1 to get a sum.
Add this number to the total. Multiply the result by the sum.
A Both algorithms contain four instructions, but Algorithm 2 is more efficient. You can use it to
amaze your friends by quickly calculating the total in only four steps. Algorithm 1 is also four
lines long, but two of the instructions are repeated nine times. Counting the first step, that’s
19 steps to complete this task!
Copyright 2022 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.
4 PROGRAMMING WITH C++
When formulating an algorithm, you can easily check to make sure it satisfies all the criteria for a good algo-
rithm. You can see how these criteria apply to an algorithm in Figure 1-2.
1.2 DECOMPOSITION
Decomposition Basics (1.2.1)
A mobile banking app contains many components. It has to provide a secure login procedure, allow users to
manage preferences, display account balances, push out alerts, read checks for deposit, and perform other tasks
shown in Figure 1-3.
The algorithm for such an extensive app would be difficult to formulate without dividing it into smaller parts,
a process called decomposition. When devising an algorithm for a complex problem or task, decomposition can
help you deal with smaller, more manageable pieces of the puzzle.
Copyright 2022 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.
Module 1 Computational Thinking 5
Fraud alerts
Change user
Secure login
preferences
iStock.com/vector.S
Pay bills Withdrawals
Transfer money
Mobile banking
Two-factor
Balances Bill pay
authentication
Direct Money
deposits transfers
Structural decomposition is a process that identifies a hierarchy of structural units. At the lowest levels
of the hierarchy are modules, indicated in yellow in Figure 1-4, that have a manageable scope for creating
algorithms.
Copyright 2022 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.
6 PROGRAMMING WITH C++
• Use a top-down approach. The nodes at the top break down into component parts in the nodes below them.
• Label nodes with nouns and adjectives, rather than verbs. For example, “Account management” is the
correct noun phrase, rather than a verb phrase, such as “Manage accounts.”
• Don’t worry about sequencing. Except for the actual login process, the components in a mobile bank-
ing system could be accessed in any order. This is a key difference between an algorithm and decom-
position. An algorithm specifies an order of activities, whereas decomposition specifies the parts of
a task.
Validate Compare
Generate Send PIN
Prompt for Prompt for user ID and Prompt user user-entered Handle
one-time to
user ID password password for PIN PIN to mismatches
PIN mobile
match generated PIN
Nodes in yellow
require further
decomposition.
Notice how the levels of the functional decomposition diagram get more specific until the nodes in the lowest
levels begin to reveal instructions that should be incorporated in an algorithm.
Here are some tips for constructing functional decomposition diagrams and deriving algorithms from them:
• Label nodes with verb phrases. In contrast to the nodes of a structural decomposition diagram, the
nodes of a functional decomposition are labeled with verb phrases that indicate “what” is to be done.
• Sequence from left to right. Reading left to right on the diagram should correspond to the sequence in
which steps in the algorithm are performed.
Copyright 2022 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.
Module 1 Computational Thinking 7
Each node
represents an
object.
PIN generator
Methods
Login screen Attribute: One-time PIN describe what an
object can do.
Attribute: Entered user ID Method: Generate random PIN
Attribute: Entered password Method: Send PIN to mobile
number
Method: Display login boxes
Method: Verify entered user ID
and password
Method: Verify PIN
Method: Handle mismatches
Valid user
An object-oriented decomposition does not produce a hierarchy. Instead it produces a collection of objects
that can represent people, places, or things.
Tips for object-oriented decomposition:
• Node titles are nouns. Each node in the object-oriented decomposition diagram is labeled with a noun.
• Attributes are nouns. A node can contain a list of attributes, which relate to the characteristics of an object.
• Methods are verb phrases. An object can also contain methods, which are actions that an object can
perform. You may need to devise an algorithm for each method.
• Sketch in connection arrows. Connection arrows help you visualize how objects share data.
• Minimize dependencies. Although input and output may flow between nodes, changing the instructions
in one module or object should not require changes to others.
• Maximize cohesion. Each object or module contains attributes, methods, or instructions that perform a
single logical task or represent a single entity.
Copyright 2022 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.
8 PROGRAMMING WITH C++
Now, what if the challenge is to add the numbers from 1 to 200? That algorithm looks like this:
Get the last number in the series (200).
Divide 200 by 2 to get a result.
Add 200 1 1 to get a sum.
Multiply the result by the sum.
Notice a pattern? This fill-in-the-blank algorithm works for any number:
Get the last number in the series (____________________).
Divide ____________________ by 2 to get a result.
Add ____________________ 1 1 to get a sum.
Multiply the result by the sum.
The process of finding similarities in procedures and tasks is called pattern identification. It is a useful com-
putational thinking technique for creating algorithms that can be used and reused on different data sets. By recog-
nizing the pattern in the Amaze-Your-Friends math trick, you can use the algorithm to find the total of any series
of numbers.
Copyright 2022 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.
Module 1 Computational Thinking 9
Recognizing this repetition, you can streamline the algorithm like this:
Get a password.
Repeat three times:
If the password is correct, allow access.
If the password is not correct, get the password again.
If the password is correct, allow access.
If the password is not correct, lock the account.
1.4 ABSTRACTION
Abstraction Basics (1.4.1, 1.4.2, 1.4.3)
Think back to the Amaze-Your-Friends math trick. By identifying a pattern, you formulated a general algorithm
that works for a sequence of any length, whether it is a sequence of 1 to 10 or 1 to 200.
Get the last number in the series (____________________).
Divide ____________________ by 2 to get a result.
Copyright 2022 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.
10 PROGRAMMING WITH C++
Q Can you envision a class that’s an abstraction of the collection of objects shown in Figure 1-7?
Budnyi/Shutterstock.com
Copyright 2022 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.
Visit https://ebookluna.com
now to explore a diverse
collection of ebooks available
in formats like PDF, EPUB, and
MOBI, compatible with all
devices. Don’t miss the chance
to enjoy exciting offers and
quickly download high-quality
materials in just a few simple
steps!
Other documents randomly have
different content
of great value as to the life of the population, the influence of external
conditions, etc.
The most important investigation of this kind carried out at
Rothamsted was organised by Mr. Cutler.[3] A team of six workers was
assembled, and for 365 days without a break they counted every day
the ciliates, the amœbæ, the flagellates, and the bacteria in a plot of
arable ground, distinguishing no less than seventeen different kinds of
protozoa. The conclusions arrived at were carefully tested by the
Statistical Department.
Of the protozoa the flagellates were found to be the most numerous,
the amœbæ came next, and the ciliates were by far the fewest. The
numbers of each organism varied from day to day in a way that
showed conclusively the essentially trophic nature of the protozoan
population. The numbers of amœbæ—especially Dimastigamœba and
of a species called α—were sharply related to the numbers of
bacteria: when the amœbae were numerous the bacteria were few,
and vice versa. Detailed examination showed that the amœbæ were
probably the cause of the fluctuations in the bacterial numbers, but Mr.
Cutler has not yet been able to find why the amœbæ fluctuated; it
does not appear that temperature, moisture content, air supply or food
supply were determining causes. The flagellates and ciliates also
showed large fluctuations, amounting in one case—Oicomonas—to a
definite periodicity, apparently, however, not related to bacterial
numbers, or, so far as can be seen, to external conditions of moisture,
temperature and food supply, and showing no agreement with the
fluctuations of the amœbæ. However, one cannot be certain that lack
of agreement between curves expressing protozoan numbers and
physical factors implies absence of causal relationships: the
observations (though the best that can yet be made) are admittedly
not complete. If we saw only the end of the bough of a tree, and could
see no connection with a trunk, we might have much difficulty in
finding relationships between its motion and the wind; whatever the
direction of the wind it would move backwards and forwards in much
the same way, and even when the wind was blowing along the plane
of its motion it would just as often move against the wind as with it.
Meanwhile evidence was obtained that the twenty-four hour interval
adopted by the protozoological staff was too long for bacteria, and
accordingly the Bacteriological Department, under Mr. Thornton,
refined the method still further. Bacterial counts were made every two
hours, day and night, for several periods of sixty or eighty hours
without a break. The shape of the curve suggests that two hours is
probably close enough, and for the present counts at shorter intervals
are not contemplated. But there is at least one maximum and one
minimum in the day, although the bacterial day does not apparently
correspond with ours, nor can any relationship be traced with the
diurnal temperature curve.
The nitrate content of the soil was simultaneously determined by Mr.
Page and found to vary from hour to hour, but the variations did not
sharply correspond with the bacterial numbers; this, however, would
not necessarily be expected. The production of nitrate involves various
stages, and any lag would throw the nitrate and bacterial curves out of
agreement. There is a suggestion of a lag, but more counts are
necessary before it can be regarded as established.
Examination of these and other nitrate curves obtained at
Rothamsted has brought out another remarkable phenomenon. No
crop is growing on these plots, and no rain fell during the eighty hours,
yet nitrate is disappearing for a considerable part of the time. Where is
it going to? At present the simplest explanation seems to be that it is
taken up by micro-organisms. A similar conclusion had to be drawn
from a study of the nitrogen exhaustion of the soil. The whole of the
nitrate theoretically obtainable from the organic matter of the soil is not
obtained in the course of hours or even days; in one of our
experiments at Rothamsted nitrification is still going on, and is far from
complete, even after a lapse of fifty-three years. The explanation at
present offered is that part of the nitrate is constantly being absorbed
by micro-organisms and regenerated later on.
Now what organisms could be supposed to absorb nitrates from the
soil? Certain bacteria and fungi are known to utilise nitrates, and one
naturally thinks of algæ as possible agents also. Dr. Muriel Bristol was
therefore invited to study the algæ of the soil. Her account is given in
Chapter VI. She has found them not only on the surface, but scattered
throughout the body of the soil, even in the darkness of 4 inches, 5
inches, or 6 inches depth, where no light can ever penetrate, and
where photosynthesis as we understand it could not possibly take
place. Some modification in their mode of life is clearly necessary, and
it may well happen that they are living saprophytically. Dr. Bristol has
not yet, however, been able to count the algæ in the soil with any
certainty, although she has made some estimates of the numbers.
The quantitative work on the soil population indicates other
possibilities which are being investigated. There is not only a daily
fluctuation in the numbers, but so far as measurements have gone, a
seasonal one also. There seems to be some considerable uplift in
numbers of bacteria, protozoa, and possibly algæ and fungi in the
spring-time, followed by a fall in summer, a rise in autumn, and a fall
again in winter. At present we are unable to account for the
phenomenon, nor can we be sure that it is general until many more
data are accumulated.
In the cases of the protozoa and the algæ, there was a definite
reason for seeking them in the soil.
Another section of the population, the fungi, was simply found, and
at present we have only limited views as to their function. The older
workers considered that they predominated in acid soils, while
bacteria predominated in neutral soils. Present-day workers have
shown that fungi, including actinomycetes, are normal inhabitants of
all soils. The attempts at quantitative estimations are seriously
complicated by the fact that during the manipulations a single piece of
mycelium may break into fragments, each of which would count as
one, while a single cluster of spores might be counted as thousands.
Little progress has therefore been made on the quantitative lines
which have been so fruitful with protozoa. Dr. Brierley gives, in
Chapters VII. and VIII., a critical account of the work done on fungi.
In addition to the organisms already considered there are others of
larger size. The nematodes are almost visible to the unaided eye,
most of them are free living and probably help in the disintegration of
plant residues, though a few are parasitic on living plants and do much
injury to clover, oats, and less frequently to onions, bulbs, and
potatoes. Further, there are insects, myriapods and others, the effects
of which in the soil are not fully known. Special importance attaches to
the earthworms, not only because they are the largest in size and in
aggregate weight of the soil population, but because of the great part
they play in aerating the soil, gradually turning it over and bringing
about an intimate admixture with dead plant residues, as first
demonstrated by Darwin. Earthworms are the great distributors of
energy material to the microscopic population. Systematic quantitative
work on these larger forms is only of recent date, and Dr. Imms, in
Chapter IX., discusses our present knowledge.
TABLE I.
Soil Population, Rothamsted, 1922.
(The figures for algæ and fungi are first approximations only, and have considerably
less value than those for bacteria and protozoa.)
Approximate Weight
per Acre of—
Numbers Dry MatterNitrogen
per Gram Living in in
of Soil. Organisms. Organisms. Organisms.
Bacteria— lb. lb. lb.
High level 45,000,000 50
25 }
2 0·2
Low level 22,500,000
Protozoa—
Ciliates—
High level 1,000 — — —
Low level 100 — — —
Amœbæ—
High level 280,000 320
Low level 150,000 170 } 12 1·2
Flagellates—
High level 770,000 190
Low level 350,000 85 } 7 0·7
Algæ (not blue-green) [100,000] 125 6 0·6
Blue-green Say
Not known. — 6 Say 0·6
Fungi—
High level [1,500,000] 1700
Low level [700,000] 800 } 60 6·0
93 9·3
= 4 parts nitrogen per
1,000,000 of soil.
Larger Organisms.
Are there any other members of the soil population that are of
importance? As already shown, the method of investigating the soil
population in use at Rothamsted is to find by chemical methods the
changes going on in the soil; to find by biological methods what
organisms are capable of bringing about these changes; and then to
complete the chain of evidence by tracing the relationships between
the numbers or activities of these organisms and the amount of
change produced. The list as we know it to-day is given in Table I.
The method, however, does not indicate whether the account is
fairly complete, or whether there are other organisms to be found. We
might, of course, trust to empirical hunting for organisms, or to chance
discoveries such as led Goodey to find the mysterious Proteomyxan
Rhizopods, which cannot yet be cultured with certainty, so that they
are rarely found by soil workers. It is possible that there are many
such organisms, and it is even conceivable that these unknown forms
far outnumber the known. The defect of the present method is that it
always leaves us in doubt as to the completeness of the list, and so
we may have to devise another.
Reverting to Table I., it obviously serves no purpose to add the
numbers of all the organisms together. We can add up the weights of
living organisms, of their dry matter or nitrogen, so as to form some
idea of the proportion of living to non-living organic matter, and this
helps us to visualise the different groups and place them according to
their respective masses. But a much better basis for comparing the
activities of the different groups would be afforded by the respective
amounts of energy they transform, if these could be determined. It is
proposed to attempt such measurements at Rothamsted. The results
when added would give the sum of the energy changes effected by
the soil population as we know it: the figure could be compared with
the total energy change in the soil itself as determined in a
calorimeter. If the two figures are of the same order of magnitude, we
shall know that our list is fairly well complete; if they are widely
different, search must be made for the missing energy transformers.
There are, of course, serious experimental difficulties to be overcome,
but we believe the energy relationships will afford the best basis for
further work on the soil population.
Finally, it is necessary to refer to the physical conditions obtaining in
the soil. These make it a much better habitat for organisms than one
might expect. At first sight one thinks of the soil as a purely mineral
mass. This view is entirely incorrect. Soil contains a considerable
amount of plant residues, rich in energy, and of air and water. The
usual method of stating the composition of the soil is by weight, but
this is misleading to the biologist because the mineral matter has a
density some two and a half times that of water and three times that of
the organic matter. For biological purposes composition by volume is
much more useful, and when stated in this way the figures are very
different from those ordinarily given. Table II. gives the results for two
Broadbalk arable plots, one unmanured and the other dunged; it
includes also a pasture soil.
The first requirement of the soil population is a supply of energy,
without which it cannot live at all. All our evidence shows that the
magnitude of the population is limited by the quantity of energy
available. The percentage by weight of the organic matter is about two
to four or five, and the percentage by volume runs about four to
twelve. Not all of this, however, is of equal value as source of energy.
About one-half is fairly easily soluble in alkalis, and may or may not be
of special value, but about one-quarter is probably too stable to be of
use to soil organisms.
A second requirement is water with which in this country the soil is
usually tolerably well provided. Even in prolonged dry weather the soil
is moist at a depth of 3 inches below the surface. It is not uncommon
to find 10 per cent. or 20 per cent. by volume of water present, spread
in a thin film over all the particles, and completely saturating the soil
atmosphere.
TABLE II.
Volume of Air, Water and Organic Matter in 100 Volumes of
Rothamsted Soil.
In Pore Space.
Values Commonly
Solid Matter. Pore Obtained.
Mineral. Organic. Space. Water. Air.
(1) 62 4 34 23 11
(2) 51 11 38 30 8
(3) 41 12 47 40 7
(1) Arable, no manure applied to soil. (2) Arable, dung applied to soil. (3) Pasture.
The air supply is usually adequate owing to the rapidity with which
diffusion takes place. Except when the soil is water-logged, the
atmosphere differs but little from that of the one we breathe. There is
more CO2, but only a little less oxygen.[8] The mean temperature is
higher than one would expect, being distinctly above that of the air,
while the fluctuations in temperature are less.[5]
The reaction in normal soils is neutral to faintly alkaline; pH values
of nearly 8 are not uncommon. Results from certain English soils are
shown on p. 18.
The soil reaction is not easily altered. A considerable amount of acid
must accumulate before any marked increase in intensity of pH value
occurs; in other words, the soil is well buffered. The same can be said
of temperature, of water, and of energy supply. Like the reaction, they
alter but slowly, so that organisms have considerable time in which to
adapt themselves to the change.
Hydrogen Ion Concentration and Soil Fertility.
pH
Alkaline 10 Sterile: Alkali soil.
9
8 Fertile: Arable.
Neutral 7
A SELECTED BIBLIOGRAPHY.
[1] Berthelot, Marcellin, “Fixation directe de l’azote atmosphérique libre par
certains terrains argileux,” Compt. Rend., 1885, ci., 775-84.
[2] Boussingault, J. B., and Léwy, “Sur la composition de l’air confiné dans
la terre végétale,” Ann. Chim. Phys., 1853, xxxvii., 5-50.
[3] Cutler, D. W., Crump, L. M., and Sandon, H., “A Quantitative
Investigation of the Bacterial and Protozoan Population of the Soil, with an
Account of the Protozoan Fauna,” Phil. Trans. Roy. Soc., Series B, 1922,
ccxi., 317-50.
[4] Hellriegel, H., and Wilfarth, H., “Untersuchungen über die
Stickstoffnahrung der Gramineen und Leguminosen,” Zeitsch. des Vereins
f. d. Rübenzucker-Industrie, 1888.
[5] Keen, B. A., and Russell, E. J., “The Factors determining Soil
Temperature,” Journ. Agric. Sci., 1921, xi., 211-37.
[6] Lawes, J. B., and Gilbert, J. H., “On Agricultural Chemistry, Especially
in Relation to the Mineral Theory of Baron Liebig,” Journ. Roy. Agric. Soc.,
1851, xii., 1-40.
[7] Liebig, Justus, “Chemistry in its Application to Agriculture and
Physiology,” 1st and 2nd editions (1840 and 1841), 3rd and 4th editions
(1843 and 1847); “Natural Laws of Husbandry,” 1863.
[8] Russell, E. J., and Appleyard, A., “The Composition of the Soil
Atmosphere,” Journ. Agric. Sci., 1915, vii., 1-48; 1917, viii., 385-417.
[9] Russell, E. J., and Hutchinson, H. B., “The Effect of Partial Sterilisation
of Soil on the Production of Plant Food,” Journ. Agric. Sci., 1909, iii., 111-
14; Part II., Journ. Agric. Sci., 1913, v., 152-221.
[10] Schloesing, Th., and Müntz, A., “Sur la Nitrification par les ferments
organisés,” Compt. Rend., 1877, lxxxiv., 301-3; 1877, lxxxv., 1018-20; and
1878, lxxxvi., 892-5. “Leçons de chimie agricole,” 1883.
[11] Warington, R., “On Nitrification,” Part I., Journ. Chem. Soc., 1878,
xxxiii., 44-51; Part II, Journ. Chem. Soc., 1879, xxxv., 429-56; Part III.,
Journ. Chem. Soc., 1884, xlv., 637-72; Part IV., Journ. Chem. Soc., 1891,
lix., 484-529.
[12] Way, J. T., “On the Composition of the Waters of Land Drainage and of
Rain,” Journ. Roy. Agric. Soc., 1856, xvii., 123-62.
[13] Winogradsky, S., “Recherches sur les organismes de la nitrification,”
Ann. de l’Inst. Pasteur, 1890, iv., 1e Mémoire, 213-31; 2e Mémoire, 257-75;
3e Mémoire, 760-71.
“Recherches sur l’assimilation de l’azote libre de l’atmosphère par les
microbes.” Arch. des Sci. Biolog. St. Petersburg, 1895, iii, 297-352.
For further details and fuller bibliography, see E. J. Russell, “Soil Conditions and
Plant Growth,” Longmans, Green & Co.
CHAPTER II.
SOIL BACTERIA.
Unlike the green plants, most bacteria are unable to obtain the
energy that is required for their metabolism from sunlight. They must,
therefore, make use of such chemical changes as will involve the
release of energy.
As an example of the acquirement of energy in this way may be
taken the oxidation of methane by B. methanicus. This organism,
described by Söhngen, obtains its energy supply by the conversion
of methane into CO2 and H2O.
CH4 + 2O2 = CO2 + 2H2O 220 Cal.
A further example is the acetic organism that obtains its energy
through the oxidation of alcohol to acetic acid.
C2H6O + O2 = C2H4O2 + H2O 115 Cal.
The decomposition processes brought about by micro-organisms
in obtaining energy are usually oxidations, but this is not necessarily
so, as can be seen in case of the fermentation of sugar into
alcohol.[E]
C6H12O6 = 2C2H6O + 2CO2 50 Cal.
[E] These examples are from Orla-Jensen (Centralblatt f. Bakt., II., Bd. 22,
p. 305).
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.
ebookluna.com