Solution Manual For
C++ How to Program An Objects-Natural
Approach, 11th edition by Paul Deitel Deitel &
Associates, Inc.Harvey Deitel
Chapter 1-21
Intro to Computers and C++
1
Objectives
In this chapter, you’ll:
Learn computer hardware,
software and Internet basics.
Understand a data hierarchy
from bits to databases.
Understand the types of
programming languages.
Understand the strengths of
C++ and other languages.
Be introduced to the C++
standard library of reusable
components.
Compile and run a C++
application using our three
preferred compilers and
Docker containers.
Be introduced to object-
technology concepts used in
the objects-natural case studies
(Chapters 2–9) and discussed
in detail in the object-oriented
programming Chapters 9–11.
Understand how concurrent
programming helps maximize
performance on multi-core
processors.
Be introduced to big data and
data science.
Learn about exciting recent
developments in computing,
including the Metaverse,
artificial intelligence and
related technologies.
,Exercises
1.1 Categorize each of the following items as either hardware or software:
a) CPU.
Answer: Hardware.
b) C++ compiler.
Answer: Software.
c) ALU.
Answer: Hardware.
d) C++ preprocessor.
Answer: Software.
e) input unit.
Answer: Hardware.
f) an editor program.
Answer: Software.
1.2 (Computer Organization) Fill in the blanks in each of the following statements:
a) The logical unit that receives information from outside the computer for use by
the computer is the .
Answer: input unit.
b) is the logical unit that sends information the computer has already
processed to various devices for use outside the computer.
Answer: output unit.
c) and are the computer’s logical units that retain information.
Answer: memory unit, secondary storage unit.
d) is the computer’s logical unit for performing calculations.
Answer: ALU.
e) is the computer’s logical unit for making logical decisions.
Answer: ALU.
f) is the computer’s logical unit for coordinating the other logical units’
activities.
Answer: CPU.
1.3 Discuss the purpose of each of the following:
a) cin
Answer: cin (the standard input stream), which is normally the keyboard, but cin
can be connected to another stream.
b) cout
Answer: Data is often output to cout (the standard output stream), which is nor-
mally the computer screen, but cout can be connected to another stream.
c) cerr
Answer: The standard error stream is referred to as cerr. The cerr stream (nor-
mally connected to the screen) is used for displaying error messages. It’s com-
mon to route regular output data, i.e., cout, to a device other than the screen
while keeping cerr assigned to the screen so that the user can be immediately
informed of errors.
,1.4 Fill in the blanks in each of the following statements:
a) Information in the computer’s memory unit is —it’s typically lost
when the computer’s power is turned off.
Answer: volatile.
b) As a measure of computer memory size, TB stands for —which is
1024 gigabytes.
Answer: terabyte.
c) Most computers today have processors that economically implement
multiple processors on a single integrated circuit chip.
Answer: multi-core.
d) enable concurrent programming with a simple sequential like coding
style.
Answer: Coroutines.
e) The most popular database model is the database in which data is
stored in simple tables of rows and columns.
Answer: relational.
f) is the process of searching through extensive collections of data to find
valuable insights.
Answer: Data mining.
g) With software individuals contribute to developing, maintaining and
evolving the software. Anyone can then use that software for their own purpos-
es—normally at no charge, but subject to various (typically generous) licensing
requirements.
Answer: open-source.
h) Today, most of the code for general-purpose operating systems is written in
.
Answer: C or C++.
i) The C++ programming models are , , , ,
.
Answer: procedural programming, object-oriented programming, functional-style
programming, generic programming and template metaprogramming.
j) Existing older C++ code using older coding idioms is called code.
Answer: legacy.
k) When writing new software avoid . Instead use existing pieces from
code libraries.
Answer: ―reinventing the wheel.‖
l) Microsoft’s primary language for the Metaverse is .
Answer: C#.
m) The that objects come from are essentially reusable software compo-
nents.
Answer: classes.
n) The protocol for communicating over the ARPANET became known as the
.
Answer: Transmission Control Protocol (TCP).
, o) TCP ensured that messages, consisting of sequentially number pieces called
were properly delivered from sender to receiver, arrived intact and
were reassembled in the correct order.
Answer: packets.
p) In the Internet of Things (IoT) a "thing" is any device with a(n) and
the ability to send, and in some cases receive, data automatically over the Inter-
net.
Answer: IP address.
q) The applications-development methodology of enables you to rapidly
develop powerful software applications by combining (often free) complemen-
tary web services and various forms of information feeds.
Answer: mashups.
r) typically refers to simulated, 3D environments that you interact with.
Answer: Virtual reality (VR).
s) is a software-based ledger distributed over nodes on the Internet.
Answer: Blockchain.
t) A is a digital or virtual currency secured by cryptography.
Answer: cryptocurrency.
u) are blockchain-based ―cryptographically unique tokens linked to dig-
ital or physical content, providing proof of ownership.‖
Answer: Non-fungible tokens.
v) is by far the most widely used version control system.
Answer: GitHub.
w) The "four Vs of big data are , , , and .
Answer: Volume, Velocity, Variety and Veracity.
x) Some people feel that the ultimate problem to be solved in AI is .
Answer: artificial general intelligence.
y) ChatGPT is a shining example of the field of .
Answer: generative AI.
1.5 State which of the following are true and which are false. If false, explain why.
a) Computing costs are dropping rapidly due to impressive developments in hard-
ware, software and Internet technologies.
Answer: True.
b) For decades, computer power approximately doubled inexpensively every year.
This remarkable trend is called Moore’s law.
Answer: False. It doubled approximately every two years.
c) Taking full advantage of multi-core architecture requires writing multithreaded
applications.
Answer: True.
d) Any computer can directly understand only its own assembly language.
Answer: False. Actually, any computer can directly understand only is own ma-
chine language.
e) The software that contains the core operating-system components is called the
kernel.
Answer: True.