Problem Solving and Python Programming 1St Edition - Ebook PDF Download
Problem Solving and Python Programming 1St Edition - Ebook PDF Download
https://ebookluna.com/download/problem-solving-and-python-
programming-ebook-pdf/
Programming and Problem Solving with Python 1st Edition - eBook PDF
https://ebookluna.com/download/programming-and-problem-solving-with-python-
ebook-pdf/
https://ebookluna.com/product/ebook-pdf-programming-problem-solving-and-
abstraction-with-c/
https://ebookluna.com/download/programming-for-problem-solving-ebook-pdf/
https://ebookluna.com/product/ebook-pdf-java-an-introduction-to-problem-
solving-and-programming-7th-edition/
(eBook PDF) Java: An Introduction to Problem Solving and Programming 8th
Edition
https://ebookluna.com/product/ebook-pdf-java-an-introduction-to-problem-
solving-and-programming-8th-edition/
https://ebookluna.com/product/ebook-pdf-matlab-a-practical-introduction-to-
programming-and-problem-solving-4th-edition/
https://ebookluna.com/product/ebook-pdf-introduction-to-programming-with-
java-a-problem-solving-approach-3rd-edition/
https://ebookluna.com/download/pericyclic-reactions-a-mechanistic-and-
problem-solving-approach-ebook-pdf/
https://ebookluna.com/product/ebook-pdf-problem-solving-with-c-10th-
edition/
Problem Solving and
Python Programming
About the Author
E Balagurusamy is presently the Chairman of EBG Foundation, Coimbatore. In the past he has also held the
positions of member, Union Public Service Commission, New Delhi and Vice-Chancellor, Anna University,
Chennai, Tamil Nadu. He is a teacher, trainer and consultant in the fields of Information Technology and
Management. He holds an ME (Hons) in Electrical Engineering and PhD in Systems Engineering from the
Indian Institute of Technology, Roorkee, Uttarakhand. His areas of interest include Object-Oriented Software
Engineering, E-Governance: Technology Management, Business Process Re-engineering and Total Quality
Management.
A prolific writer, he has authored a large number of research papers and several books. His best-selling
books, among others include:
● Programming in ANSIC, 7/e
● Fundamentals of Computers
● Numerical Methods
● Reliability Engineering
E Balagurusamy
Chairman
EBG Foundation
Coimbatore
Copyright © 2018 by McGraw Hill Education (India) Private Limited. No part of this publication may be reproduced or distributed in
any form or by any means, electronic, mechanical, photocopying, recording, or otherwise or stored in a database or retrieval system
without the prior written permission of the publishers. The program listings (if any) may be entered, stored and executed in a computer
system, but they may not be reproduced for publication.
1 23456789 D101417 22 21 20 19 18
Printed and bound in India
Print Edition:
ISBN-13: 978-93-87067-01-1
ISBN-10: 93-87067-01-7
Information contained in this work has been obtained by McGraw Hill Education (India), from sources believed to be reliable. However,
neither McGraw Hill Education (India) nor its authors guarantee the accuracy or completeness of any information published herein,
and neither McGraw Hill Education (India) nor its authors shall be responsible for any errors, omissions, or damages arising out
of use of this information. This work is published with the understanding that McGraw Hill Education (India) and its authors are
supplying information but are not attempting to render engineering or other professional services. If such services are required, the
assistance of an appropriate professional should be sought.
Typeset at The Composers, 260, C.A. Apt., Paschim Vihar, New Delhi 110 063 and printed at
Cover Printer:
Preface ix
Unit 3: Functions
Developments in the field of digital electronics and the huge amount of data generated during the last
few decades ushered in the second Industrial Revolution which is popularly referred to as the Information
Revolution. Information technology played an ever-increasing role in this new revolution. A sound knowledge
of how computers work, process and analyze data has, therefore, become indispensable for everyone who
seeks employment not only in the area of IT, but also in any other fields. Rightly so, many institutions and
universities in India have introduced a subject covering Problem Solving and Python Programming for their
undergraduate students. This book caters to those needs of the undergraduate students.
Publisher’s Note
Remember to write to us. We look forward to receiving your feedback, comments, and ideas to enhance
the quality of this book. You can reach us at [email protected]. Please mention the title and
authors’ name as the subject. In case you spot piracy of this book, please do let us know.
Unit 1
Introduction to Computing and
Algorithmic Problem Solving
1.1 IntroductIon
In earlier days, the term “digital computer” was used to refer a person who drew mathematical tables and
solved complex calculations. In less than a human lifetime, computers have changed from massive, expensive
and unreliable calculators to the dependable and versatile machines that are now omnipresent in society.
Computers were once the size of rooms and used to take a day to change the program and now, it is just a
double click away. Computers help the impossible become possible. They have become a necessary tool in
today’s society. Without computers, it is hard to do pretty much anything. Computers process information in
1’s and 0’s (usually referred to as On and Off respectively). This operation identifies instructions in Binary
Code. This is the language understood by the computer to complete a command. By 1953, it was estimated
that there were almost 100 computers in the world.
It is believed that the first computer was invented in Berlin, Germany, in 1936.
● The Z1 was invented in 1936 by Konrad Zuse in Germany. This was a programmable machine that
1944. It was a large calculator. This computer was able to calculate many different types of numbers.
● With the advancement of technology and research, major companies like IBM, Apple, and Intel have
contributed to the explosion of the personal computers as we know today. For example, Apple 1 was
released in 1976 which was having memory of 4 KB expandable to 8 KB. The Macintosh was released
in 1984 which was having memory of 64 KB expandable to 256 KB.
● CSIRAC was the first computer to play digital music in 1949.
● UNIVAC 1 was used by CBS to predict the results of the 1952 presidential elections in USA.
● COBOL (Common Business Oriented Language), one of the oldest programming languages, was
● Single - board computer known as apple -1 was designed by Steve Wozniak some more important
developments and was marketed by his friend Steve Jobs.
● In 1980 IBM introduced its Personal Computers (PC). The first IBM PC was known as IBM Model
window's NT
● In 1994 Sony entred the home gaming market with release of play station console.
A Personal Computer (PC) is a digital computer designed for the usage by one person at a time. PCs
can be classified into desktop computers, workstations and laptop computers. Today, PCs have five major
applications which are as follows:
1. Internet Browser: Internet browser is a software application used to access the Internet. For example,
Internet Explorer, Firefox, Opera, etc., are all Internet browsers.
2. Data Compression Software: Data compression software is used to reduce file size. ZIP is widely used
as the data compression software on personal computers.
3. Windows Media Player: Windows Media Player is used to create music libraries for listening music.
4. Image Editing Software: Image editing software is used to develop good quality pictures. Examples of
such software include Photoshop, Microsoft Publisher and Picasa.
5. Audio Editing Software: Audio editing software is used to edit audio files and also to add audio effects.
Note The first personal computer was Altair 8800. Later IBM introduced IBM PC.
Computers have become an integral part of the society because of the following characteristics they
possess:
● A computer can perform millions of calculations in a second.
● A computer can store billions of bytes of information. For example, the capacity of a terabyte =
2,00,000 songs.
● A computer can work continuously without getting tired.
execution. The information can be stored by using compact disk (CD), floppy, etc.
2. Data or programs are stored into the main memory.
3. Processing of instructions is sequential.
Note A process describes how the processor takes the data or program, decodes it and
finally executes it. The fetch-decode-execute cycle is also known as the Von Neumann
execution cycle.
Language: English
The
Seven Sleuths’ Club
By CAROL NORTON
Author of
“The Phantom Yacht,” “Bobs, A Girl Detective,” etc.
Copyright MCMXXVIII
The Saalfield Publishing Co.
Printed in the United States of America
CONTENTS
CHAPTER PAGE
I. Enter the S. S. C. 3
II. Snow Maidens 9
III. A Merry Adventure 15
IV. Interesting News 29
V. A Mischievous Plan 36
VI. Milk Maids and Butter Churners 44
VII. An Unwilling Hostess 51
VIII. Three Letters 59
IX. A Returned Call 72
X. Wanted—A Housekeeper 80
XI. A Rebellious Boy 93
XII. A Sleigh-ride Party 98
XIII. A Bag of Gold 106
XIV. Two Conspirators 118
XV. A Boy’s Repentance 125
XVI. The Heart of a Snob 137
XVII. First Day in a New School 144
XVIII. A Mystery to Solve 153
XIX. Searching for Clues 163
XX. The Sleuths Sleuthing 171
XXI. A Valentine Party 183
XXII. A New Resolve 194
XXIII. A Proud Cook 201
XXIV. Kindness Rewarded 211
XXV. A Much Loved Girl 219
XXVI. A Happy Reunion 225
XXVII. Home, Sweet Home 231
[3]
“That’s too much for me!” laughed little Betty Byrd. [5]
“Where do you learn such long words, Rose? I’m still
using monosyllables.”
“What, pray tell, is the joke? I suppose you are aware of [6]
the fact that this is January the tenth and not April the
first?” Peggy could be quite sarcastic at times.
[9]
CHAPTER II.
SNOW MAIDENS
The large, square library of the Lee home was warm [10]
and cheerful on that blustery, blizzardy Saturday
afternoon. A log was snapping and crackling on the
hearth and a big slate-colored Persian cat on the rug
was purring loudly its content. A long lad, half reclining
on a window seat, was reading a detective story and
making notes surreptitiously now and then. At a wide
front window, Merry Lee stood drumming her fingers on
the pane and peering out at the whirling snow. A
chiming clock announced that the hour was three. “And
I told the crowd to be there by two-thirty at the latest.”
Although the girl had not really been addressing him,
the boy glanced up to remark: “Might as well give up,
Sis. Girls wouldn’t venture out in a storm like this; they
are like cats. They like to stay in where it’s warm and
comfy. Hey, Muff?” The puss, upon hearing its name,
opened one sleepy blue eye, looked at the boy lazily
and then dozed again.
Merry whirled to defy her brother. “Now, sir, you see [11]
girls aren’t afraid of a little blizzardly weather. I’m
certainly glad they came. I’d burst if I had to keep my
secret any longer.”
“Hail! Hail! The gang’s all here!” Merry sang out, but
quickly added: “Oh, don’t mind about the snow. Come
on in. Katie put matting over the carpet.” Then as she
looked from one ruddy, laughing face to another, the
hostess exclaimed: “But you aren’t all here. What’s the
matter with Rose? Why didn’t she come?” Then before
anyone could reply, Merry guessed: “O, I suppose her
lady mother was afraid her precious darling would melt
or be blown away! I don’t see how Rose ever gets to
school in the winter. Her mother coddles her so!”
They had not long to wait, for in less than five minutes
Merry reappeared from the cloakroom, under the wide,
winding stairway, a fur cap hiding her short curls, a fur
cloak reaching to her knees and her legs warmly
ensconced in leggins of the same soft grey. She opened
the door to the library and called to her brother, who
was again deeply engrossed in his book: “The ‘cats’ are
about to leave. We’ve decided to hold today’s most
important meeting of our secret society in the palatial
home of the Widow Wright. I am enlightening you as to
our destination, Brother dear, so that if we happen to be
lost in a snow drift, you will know where to come to dig
us out.”
Jack had leaped to his feet when he saw the merry [13]
faces of the five girls in the hall, but before he could
join them, they had darted out through the storm porch,
and the wind slammed the door after them.
“Dead easy!” Bob Angel had told them. “Sunny Side [14]
Club, of course.” But the girls had never been able to
guess the meaning of the boys’ “C. D. C.,” nor did they
know where the secret meetings were held. These
meetings were always at night, and, although Sunnyside
girls were modern as far as their conversation went;
due to their parents’ antiquaited ideas, perhaps, they
were not considered old enough to roam about the dark
streets of the town at night unless accompanied by their
brothers or someone older. And, of course, they couldn’t
find out the secret meeting-place of the boys when the
members were along, and so up to that particular date,
January 11, 1928, the seven “S. S. C.” girls had not
even a suspicion of where the boys’ clubrooms were
located.
[15]
CHAPTER III.
A MERRY ADVENTURE
“Ssh! Ssh!” Merry’s hand was on Dory’s arm. “Our victim [17]
is now in sight. My, what a swell turnout! Some cutter
that, isn’t it?” The six girls had stepped to one side of
the road and were watching with interest the approach
of a large sleigh which was being drawn at a rapid pace
by two big white horses perfectly matched. The driver,
as they could discern as it drew nearer, was a young
man who was almost hidden in a big brown fur coat and
cap, but his eyes were peering out and he was amazed
to see a bevy of girls standing by the unbroken lane, so
evidently in distress.
The lad thanked her and was about to drive on; then he
hesitated and turned back.
“Say, but you missed the time of your young life,” Peggy
Pierce informed her as the girls removed their overshoes
and leggins in the storm vestibule. “Such a handsome
boy as we had to drive us up the lane.”
“O, you don’t have to tell me,” Rose laughingly replied. [20]
“I was standing in the drawing-room window watching
you from the time you appeared at the foot of the lane.
If you had turned back, I should have been simply
heart-broken. Mother thinks that I have a cold, and she
wouldn’t let Tony drive me to town, and, of course, I
can’t use my runabout in weather like this.” Then, when
cloaks and caps had been removed and they were
gathered about the wide fireplace in Rose’s very own
sitting-room, that maiden passed around a five-pound
box of chocolates to keep the first part of her promise;
then she demanded: “Merry Lee, you haven’t told the
others your exciting news yet, have you?”
“Oh, I say, let’s cut out formality, for once, can’t we?”
Peggy Pierce implored. “Why read the minutes of the
last meeting when all we did was entertain the little
orphans with a big Christmas tree?”
“Merry, do you really? How ever did you find out? I’ve
asked Bob over and over to tell me, but he has always
refused and has actually declared that we girls never
would know.”
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