Get Solution Manual for Visual C# How to Program (6th Edition) (Deitel Series) 6th Edition Free All Chapters Available
Get Solution Manual for Visual C# How to Program (6th Edition) (Deitel Series) 6th Edition Free All Chapters Available
http://testbankbell.com/product/solution-manual-for-visual-
basic-2012-how-to-program-6-e-6th-edition-0133406954/
testbankbell.com
http://testbankbell.com/product/test-bank-for-visual-c-2012-how-to-
program-5-e-5th-edition-0133379337/
testbankbell.com
http://testbankbell.com/product/solution-manual-for-c-how-to-
program-10th-by-deitel/
testbankbell.com
http://testbankbell.com/product/test-bank-for-measurement-and-
assessment-in-education-2-e-2nd-edition-0205579345/
testbankbell.com
Fundamentals of General Organic and Biological Chemistry
8th Edition McMurry Test Bank
http://testbankbell.com/product/fundamentals-of-general-organic-and-
biological-chemistry-8th-edition-mcmurry-test-bank/
testbankbell.com
http://testbankbell.com/product/physics-of-continuous-matter-exotic-
and-everyday-phenomena-in-the-macroscopic-world-2nd-lautrup-solution-
manual/
testbankbell.com
http://testbankbell.com/product/test-bank-for-guide-to-networking-
essentials-6th-edition-by-tomsho/
testbankbell.com
http://testbankbell.com/product/test-bank-for-special-events-creating-
and-sustaining-a-new-world-for-celebration-7th-edition-by-goldblatt/
testbankbell.com
http://testbankbell.com/product/test-bank-for-government-and-not-for-
profit-accounting-concepts-and-practices-7th-edition/
testbankbell.com
Solution Manual for Visual C# How to
Program (6th Edition) (Deitel Series) 6th
Edition
Full download at: https://testbankbell.com/product/solution-manual-for-visual-c-how-to-
program-6th-edition-deitel-series-6th-edition/
Introduction to Computers,
the Internet and Visual C# 1
Objectives
In this chapter you’ll:
■ Learn basic computer
hardware, software and data
concepts.
■ Be introduced to the different
types of computer
programming languages.
■ Understand the history of the
Visual C# programming
language and the Windows
operating system.
■ Learn what cloud computing
with Microsoft Azure is.
■ Understand the basics of
object technology.
■ Be introduced to the history
of the Internet and the World
Wide Web.
■ Understand the parts that
Windows, .NET, Visual
Studio and C# play in the C#
ecosystem.
■ Test-drive a Visual C#
drawing app.
2 Chapter 1 Introduction to Computers, the Internet and
Self-Review
Visual C#Exercises 2
Self-Review Exercises
1.1 Fill in the blanks in each of the following statements:
a) Computers process data under the control of sequences of instructions called .
ANS: computer programs.
b) A computer consists of various devices referred to as , such as the keyboard,
screen, mouse, hard disks, memory, DVD drives and processing units.
ANS: hardware.
c) Data items processed by computers form a(n) that becomes larger and more
complex in structure as we progress from the simplest data items (called “bits”) to richer
data items, such as characters, fields, and so on.
ANS: data hierarchy.
d) Computers can directly understand only their language, which is composed
only of 1s and 0s.
ANS: machine.
e) The three types of computer programming languages discussed in the chapter are ma-
chine languages, and .
ANS: assembly languages, high-level languages.
f) Programs that translate high-level-language programs into machine language are called
.
ANS: compilers.
g) A(n) processor implements several processors on a single “microchip”—a
dual-core processor has two CPUs and a quad-core processor has four CPUs.
ANS: multicore.
h) Windows 10 introduced the for building Windows apps that run on desktop
computers, notebook computers, tablets, phones, Xbox and even Microsoft’s new
HoloLens augmented reality holographic headset—all using nearly identical code.
ANS: Universal Windows Platform (UWP).
1.2 Fill in the blanks in each of the following statements:
a) Objects, or more precisely the that objects come from, are essentially reusable
software components.
ANS: classes.
b) You send messages to an object. Each message is implemented as a method that
tells a method of the object to perform its task.
ANS: call.
c) A new class of objects can be created quickly and conveniently by ; the new
class absorbs the characteristics of an existing class, possibly customizing them and add-
ing unique characteristics of its own.
ANS: inheritance.
d) To create the best solutions, you should follow a detailed analysis process for determin-
ing your project’s (i.e., defining what the system is supposed to do) and de-
veloping a design that satisfies them (i.e., deciding how the system should do it).
ANS: requirements.
e) Visual C# is driven. You’ll write programs that respond to mouse clicks, key-
strokes, timer expirations and touches and finger swipes.
ANS: event.
f) A key goal of Java is to be able to write programs that will run on a great variety of com-
puter systems and computer-control devices. This is sometimes called .
ANS: write once, run anywhere.
1.3 Fill in the blanks in each of the following statements:
3 Chapter 1 Introduction to Computers, the Internet and
Self-Review
Visual C#Exercises 3
1.6 Describe the two-step translation process for preparing your C# code to execute on your
particular computer.
ANS: C# code is first compiled into MSIL and placed in an executable file. When the app
executes, another compiler called the JIT (just-in-time) compiler in the CLR trans-
lates the MSIL in the executable file into machine-language code (for a particular
platform).
Exercises
1.7 Fill in the blanks in each of the following statements:
a) The programs that run on a computer are referred to as .
ANS: software
b) Systems such as smartphones, appliances, game controllers, cable set-top boxes and au-
tomobiles that contain small computers are called .
ANS: embedded systems
c) Just as characters are composed of bits, are composed of characters or bytes.
ANS: fields
d) Information on secondary storage devices is ; it’s preserved even when the
computer’s power is turned off.
ANS: persistent
e) Translator programs called convert high-level language code into machine-
language code.
ANS: compilers
f) In object-oriented programming languages, we create a program unit called a(n)
to house the set of methods that perform its tasks.
ANS: class
g) Use a building-block approach to creating your programs. Avoid reinventing the
wheel—use existing pieces wherever possible. Such software is a key benefit
of object-oriented programming.
ANS: reuse
1.8 Fill in the blanks in each of the following statements:
a) Although many different OOAD processes exist, a single graphical language for com-
municating the results of any OOAD process has come into wide use. This language,
known as the , is now the most widely used graphical scheme for modeling ob-
ject-oriented systems.
ANS: UML
b) Tim Berners-Lee developed the for sharing information via “hyperlinked”
text documents on the web.
ANS: HyperText Markup Language (HTML)
c) The CLR is a(n) machine. It is software that manages the execution of pro-
grams and hides from them the underlying operating system and hardware.
ANS: virtual
d) Converting a program to run on a different platform from which it was originally in-
tended is called .
ANS: porting.
e) Microsoft’s Windows is a cloud-computing platform that allows you to de-
velop, manage and distribute your apps in the cloud.
ANS: Azure. (Instructor Note: "Microsoft’s Windows" should be simply "Microsoft" in
this exercise.)
5 Chapter 1 Introduction to Computers, the Internet and Visual C#Exercises 5
f) By using existing controls—which are objects—you can create powerful apps much
faster than if you had to write all the code yourself. This is a key benefit of software
.
ANS: reuse
1.9 State whether each of the following is true or false. If false, explain why.
a) The smallest data item in a computer can assume the value 1 or the value 2. Such a data
item is called a bit (short for “binary digit”—a digit that can assume either of two val-
ues).
ANS: False. Such items have the value 0 or 1.
b) The Unicode character set is a popular subset of ASCII that represents uppercase and
lowercase letters, digits and some common special characters.
ANS: False. ASCII is a subset of Unicode.
c) Each of the following is a form of computer output: data displayed on screens, printed
on paper, played as audio or video on PCs and media players, used to control other de-
vices, such as robots, 3D printers and “intelligent” appliances.
ANS: True.
d) Reuse helps you build more reliable and effective systems, because existing classes and
components often have gone through extensive testing, debugging and performance
tuning.
ANS: True.
e) One of the W3C’s primary goals is to make the web universally accessible to everyone
regardless of disabilities, language or culture.
ANS: True.
f) C# is available only on Microsoft Windows.
ANS: False. There are ports of C# for other platforms, such as Linux.
g) The .NET Framework Class Library has millions of valuable prebuilt classes that have
been tested and tuned to maximize performance.
ANS: False. Thousands, not millions, of prebuilt classes.
h) .NET programs can run on any platform.
ANS: False. .NET prorgrams run on the Common Language Runtime, which is a virtual
machine.
i) The Universal Windows Platform (UWP) is designed to provide a common platform
(the underlying system on which apps run) and user experience across all of your devices
including personal computers, smartphones, tablets and Xbox Live.
ANS: True.
1.10 What is a key advantage of interpreters over compilers? What is a key disadvantage?
ANS: A key advantage is that interpreters can execute high-level language programs directly
(without the need for compilation). A key disadvantage is that interpreted programs
exexute more slowly than compiled programs.
1.11 What is the key advantage of using the new async feature in preference to using old-style
multithreading?
ANS: The new features simplify asynchronous programming, because the compiler hides
much of the associated complexity from the developer.
1.12 What are operating systems?
ANS: Operating systems are software systems that make using computers more convenient
for users, app developers and system administrators. They provide services that allow
each app to execute safely, efficiently and concurrently (i.e., in parallel) with other
apps.
6 Chapter 1 Introduction to Computers, the Internet and Visual C#Exercises 6
1.13 Why is using cloud-computing resources sometimes preferable to purchasing all the hard-
ware you need for your own computer?
ANS: Cloud computing gives you the flexibility to increase or decrease computing resourc-
es to meet your resource needs at any given time, making it more cost effective than
purchasing expensive hardware to ensure that you have enough storage and process-
ing power at their occasional peak levels.
1.14 Categorize each of the following items as either hardware or software:
a) CPU
ANS: Hardware.
b) Compiler
ANS: Software
c) Input unit
ANS: Hardware.
d) A word-processor program
ANS: Software
e) A C# program
ANS: Software
1.15 Translator programs, such as assemblers and compilers, convert programs from one lan-
guage (referred to as the source language) to another language (referred to as the target language).
Determine which of the following statements are true and which are false:
a) An assembler translates source-language programs into machine-language programs.
ANS: True.
b) High-level languages are generally machine dependent.
ANS: False. A high-level language must be compiled into machine-dependent language be-
fore it can be executed. This allows high-level languages to be used on all computers
with appropriate compilers.
c) A machine-language program requires translation before it can be run on a computer.
ANS: False. A machine-language program is native to a specific machine.
d) The C# compiler translates high-level-language programs into SMIL.
ANS: False. It translates C# into MSIL.
1.16 Expand each of the following acronyms:
a) W3C
ANS: World Wide Web Consortium
b) OOP
ANS: Object-Oriented Programming
c) CLR
ANS: Common Language Runtime
d) MSIL
ANS: Microsoft Intermediate Language
e) UML
ANS: Unified Modeling Language
f) IDE
ANS: Integrated Development Environment
1.17 What are the key benefits of the .NET Framework and the CLR? What are the drawbacks?
ANS: The key benefits are portability between operating systems and interoperability be-
tween languages. As long as a CLR exists for a platform, it can run any .NET pro-
gram. Programmers can concentrate on program logic instead of platform-specific
details. Thus, the double compilation (code-to-MSIL, and MSIL-to-machine code)
allows for platform independence: Programs can be written once and executed on any
7 Chapter 1 Introduction to Computers, the Internet and Visual C#Exercises 7
1.25 Besides the obvious benefits of reuse made possible by OOP, what do many organizations
report as another key benefit of OOP?
ANS: That OOP tends to produce software that is more understandable, better organized,
and easier to maintain, modify and debug.
Making-a-Difference Exercises
The Making-a-Difference exercises will ask you to work on problems that really matter to individ-
uals, communities, countries and the world.
1.26 (Test Drive: Carbon Footprint Calculator) Some scientists believe that carbon emissions,
especially from the burning of fossil fuels, contribute significantly to global warming and that this
can be combatted if individuals take steps to limit their use of carbon-based fuels. Various organi-
zations and individuals are increasingly concerned about their “carbon footprints.” Websites such
as TerraPass
http://www.terrapass.com/carbon-footprint-calculator-2/
provide carbon-footprint calculators. Test drive these calculators to determine your carbon foot-
print. Exercises in later chapters will ask you to program your own carbon-footprint calculator. To
prepare for this, research the formulas for calculating carbon footprints.
1.27 (Test Drive: Body-Mass-Index Calculator) By recent estimates, two-thirds of the people in
the United States are overweight and about half of those are obese. This causes significant increases
in illnesses such as diabetes and heart disease. To determine whether a person is overweight or obese,
you can use a measure called the body mass index (BMI). The United States Department of Health
and Human Services provides a BMI calculator at http://www.nhlbi.nih.gov/guidelines/
obesity/BMI/bmicalc.htm. Use it to calculate your own BMI. An exercise in Chapter 3 will ask you
to program your own BMI calculator. To prepare for this, research the formulas for calculating BMI.
1.28 (Attributes of Hybrid Vehicles) In this chapter you learned the basics of classes. Now you’ll
begin “fleshing out” aspects of a class called “Hybrid Vehicle.” Hybrid vehicles are becoming increas-
ingly popular, because they often get much better mileage than purely gasoline-powered vehicles.
Browse the web and study the features of four or five of today’s popular hybrid cars, then list as many
of their hybrid-related attributes as you can. For example, common attributes include city-miles-per-
gallon and highway-miles-per-gallon. Also list the attributes of the batteries (type, weight, etc.).
ANS:
• Manufacturer
• Type of Hybrid—Battery hybrid (Hybrid Electric Vehicles), Plug-in hybrid, Fuel cell etc.
• Driver feedback system—so the driver can monitor fuel efficiency based on their driving
• Energy recovery—for example, regenerative breaking
• Carbon footprint—tons of CO2 per year
• Fuel capacity
• City-miles-per-gallon
• Highway-miles-per-gallon
• Two-mode hybrid propulsion system
• Engine size—V6, V8, etc.
• Vehicle type—SUV, crossover, compact, mid-size, etc.
Making-a-Difference Exercises 9
• Seating capacity
• Horse power
• Drive train (front wheel drive, all wheel drive)
• Top speed
• Torque
• Price
1.29 (Gender Neutrality) Some people want to eliminate sexism in all forms of communication.
You’ve been asked to create a program that can process a paragraph of text and replace gender-spe-
cific words with gender-neutral ones. Assuming that you’ve been given a list of gender-specific
words and their gender-neutral replacements (e.g., replace “wife” with “spouse,” “man” with “per-
son,” “daughter” with “child” and so on), explain the procedure you’d use to read through a para-
graph of text and manually perform these replacements. How might your procedure generate a
strange term like “woperchild,” which is actually listed in the Urban Dictionary (www.urbandic-
tionary.com)? In Chapter 5, you’ll learn that a more formal term for “procedure” is “algorithm,”
and that an algorithm specifies the steps to be performed and the order in which to perform them.
ANS: Search through the entire paragraph for a word such as “wife” and replace every oc-
currence with “spouse.” Repeat this searching process for every gender specific word
in the list. You could accidentally get a word like “woperchild” if you are not careful
about how you perform replacements. For example, the word “man” can be part of
a larger word, like “woman.” So, replacing every occurrence of “man” can yield
strange results. Consider the process of replacing “man” with “person” then replacing
“son” with “child.” If you encounter the word “woman,” which contains the word
“man,” you’d replace “man” with “person” resulting in the word “woperson.” In a
subsequent pass you’d encounter “woperson” and replace “son” with “child” result-
ing in the “woperchild.”
Other documents randomly have
different content
The Project Gutenberg eBook of Told in the
gardens of Araby (untranslated until now)
This ebook is for the use of anyone anywhere in the United
States and most other parts of the world at no cost and with
almost no restrictions whatsoever. You may copy it, give it away
or re-use it under the terms of the Project Gutenberg License
included with this ebook or online at www.gutenberg.org. If you
are not located in the United States, you will have to check the
laws of the country where you are located before using this
eBook.
Language: English
[Contents]
Told in the Gardens of
Araby
By
IZORA CHANDLER
and
MARY W. MONTGOMERY
NEW YORK: EATON & MAINS
CINCINNATI: JENNINGS & GRAHAM
[Contents]
Copyright, 1905, by
EATON & MAINS [3]
[Contents]
CONTENTS
Page
Prelude 5
The Emerald Roc 18
The Story of the Beautiful Girl Who Had Her Wish 44
The Story of the Beautiful One Who Did Not Have Her
Desire 62
Story of the Crying Pomegranate and the Laughing Bear 97
Story of the Bird of Affliction 130
Story of the Water-Carrier 157
Story of the Coffee-Maker’s Apprentice 168
Story of the Candy-Maker’s Apprentice 182
The Crystal Kiosk and the Diamond Ship 203
[5]
[Contents]
Told in the Gardens of Araby
PRELUDE
Time is not given in which to explain that a mild gait is preferred; for
the Arab boy at once enters into the spirit of his mistress—strikes a
resounding blow upon each snowy flank, with such immediate effect
that the unaccustomed rider slides from her insecure position and
joins in the merriment.
“Alas! the Orient has broken your spirit! It is not like this that in your
own country you would ride. Think you that I do not know?”
Hastily arranging her flowing skirts, the young girl sprang gayly
astride the high, polished saddle; leaned forward and whispered,
“Away! Babash!” During the next few moments, shadow and sunlight
became a swift kaleidoscope of gayety and color. The little animal,
divining what was expected of her, broke into a gallop of whose
madness one never would have dreamed her capable; and which
made it most comical to witness the wild attempts of her [9]poor little
foal at keeping pace, and his bewilderment when, after viewing, with
despair, her disappearance before him, his astonished gaze
discovered her hastening toward him from behind, only to leave him
again, a little farther on.
The air was sprayed with rose water; we reclined upon the cushions.
Quiet restored, the Madame descended and joined us. Coffee was
brought—though not at once; for the moments do not urge, as in the
Occident; they weave themselves, unnoted, into slow and shining
hours. Resting thus, and, later on, tasting the cream tart of whose
deliciousness the half has never been told, it was inevitable that we
should fall into the custom of the country and relate, each to the
others, tales of our native lands.
Then how should this be other than a land for reverie? Certain hours
of every day are witness to the sun’s terrible triumph. Its atmosphere
becomes of intolerable sultriness. Its climate renders the people
indolent in action, while permitting their intellects to remain keen and
their passions lively. They have, moreover, quick sense of the
ludicrous; a childish, untutored taste for practical jokes; a refinement
of cunning, and, often seemingly asleep, in reality they never lose
their sagacity. Only when in dispute are their voices and actions
unsubdued. As a rule, they are not good in conversation; any point is
made clear by the relation of some parallel tale; and always the men
are ready to loiter and to loaf.
Although the dairy life of the women is enriched with the arts of
cookery and exquisite needlework, it must become monotonous.
They are passionately fond of the open air; but their fullest
enjoyment of it consists in reclining upon rug and cushion, beneath
some fragrant shade, while their slow, indolent eyes traverse the
beauty of garden, sea, or sky, and the ear is soothed with some story
which, at the same time, stirs the sense, gives wing to imagination,
and satisfies the inaction of their present by calling up [13]visions of
far-away activities, perhaps aided by the unseen and unknown.
One, for whom character needs not to consist in eternal effort, must
find great charm in these people, with their childish love for the
passing hour and readiness to give or accept friendliness. Often the
youths are of ideal beauty. Usually the men are well built, healthful,
abstemious. Always the women are splendidly robust and
handsome. Nearly everyone is unmalicious, gentle in temper,
leisurely—nay, more—loitering. Nobody is in a hurry. He who hastes
is viewed with suspicion. Even punctuality in the payment of dues is
decried; and no shopkeeper, worthy of a booth in the bazaar, will
permit a customer to depart until after bewildering his sight with the
most gorgeous properties upon the shelves. Should an unwary
shopper ask the price of any article or permit his eye to linger upon
it, coffee is at once served and the business call becomes a visit of
ceremony.
However somber this life, the pious Moslem finds content in letting
his mind dwell upon the bliss of that life beyond. He is profoundly
submissive in the presence of death; accepts its coming with
unquestioning resignation, since his Edjel—appointed death hour—
and that of his beloved ones, was decreed by Allah and invisibly
inscribed upon the [15]brow at birth. Dying means that one is bidden,
by “the Cupbearer of the Spheres,” to partake of the joys of
Paradise. Why, then, should one regret the summons?
Devotion is natural to him. Five times each day does the dweller in
village or city obey a call to prayer—even though the muezzin who
cries may be far from holy and his intrigues furnish the point for
many a tale. According to Lady Blunt, “nothing gives so much
distinction, in this land, as regular attendance at prayers.” The name
of Allah enters into every bargain, greeting, or conflict. To the really
faithful, every living creature has some spiritual significance. The
killing of a dog may cost a man many bushels of grain—perchance,
his life. The stork and swallow are sacred. Even the unclean vulture
must not be slain. His body is the abode of some sinful soul; and, if
the bird be killed, the poor soul forever must perish.
Each tribe, in this Land of Ishmael, claims descent from some one of
the three members of Abraham’s family; and insists that social and
religious status were overthrown by Mohammed, when he subjected
them to his version of the law of the One God. To this it may be
added that there are those who believe that the enmity of Christians
against the Jews prevented the great prophet from adopting the
Christian faith.
Upon his possession of Arabia does the Sultan base his title of
Caliph. With the downfall of those [17]rulers came a relapse into the
former separate chieftaincies; so that every valley, between desert
and coast, or mountain range, now supports its wandering band. For
this reason, these people love that the stories told them should
concern that time of the Caliphs; when the country flourished as
never before or after.
Perhaps it will be well to begin these stories from the Orient with a
relation of cruel intrigue and of patient revenge, aided by potent,
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
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.
testbankbell.com