Coding For Kids 5 Books in 1: Javascript, Python and C++ Guide For Kids and Beginners (Coding For Absolute Beginners) Mather
Coding For Kids 5 Books in 1: Javascript, Python and C++ Guide For Kids and Beginners (Coding For Absolute Beginners) Mather
com
https://ebookmass.com/product/coding-for-kids-5-books-
in-1-javascript-python-and-c-guide-for-kids-and-beginners-
coding-for-absolute-beginners-mather/
OR CLICK HERE
DOWLOAD NOW
https://ebookmass.com/product/coding-for-kids-5-books-in-1-javascript-
python-and-c-guide-for-kids-and-beginners-bob-mather/
ebookmass.com
https://ebookmass.com/product/modern-c-for-absolute-beginners-second-
edition-solbodan-dmitrovic/
ebookmass.com
https://ebookmass.com/product/modern-c-for-absolute-beginners-2nd-
edition-slobodan-dmitrovic/
ebookmass.com
https://ebookmass.com/product/secrets-of-euphoria-work-romance-irish-
mafia-bdsm-club-euphoria-novels-book-3-v-b-emanuele/
ebookmass.com
Turn the Tide Ruggle
https://ebookmass.com/product/turn-the-tide-ruggle/
ebookmass.com
https://ebookmass.com/product/mastering-structural-heart-disease-1st-
edition-eduardo-j-de-marchena/
ebookmass.com
https://ebookmass.com/product/causation-explanation-and-the-
metaphysics-of-aspect-bradford-skow/
ebookmass.com
https://ebookmass.com/product/bad-trust-michael-a-kahn-3/
ebookmass.com
https://ebookmass.com/product/mosbys-medical-dictionary-10th-edition-
edition-mosby/
ebookmass.com
(eTextbook PDF) for Sports in Society: Issues and
Controversies 11th Edition
https://ebookmass.com/product/etextbook-pdf-for-sports-in-society-
issues-and-controversies-11th-edition/
ebookmass.com
Coding for Kids 5 Books in 1
Coding for Kids in C++
Table of Contents
Table of Contents
Disclaimer
Free Gift
Introduction
Why Learn Programming
Setting Up the Workspace
Hello World in C++
Variables
Mathematics Operations
Functions
Conditional Statement
Loops
Arrays
Structures
Final Project
Conclusion
Book 2: Coding for Kids in Javascript
Introduction
SET UP WORKSPACE
Intro to html
The Bulb Example - html
html Forms
JavaScript Example
Conditional Statement
Nested Conditional Statements
Loops
Arrays
Having Fun with Strings
Introduction to CSS
Linking Multiple Web Pages
Math Functions
Conclusion
Book 3: Coding for Teens in Javascript
Introduction
Soft Skills of Coding
Setting Up Your Workspace
What is html?
Sample html Program
html forms
What is JavaScript?
Introduction to CSS
Doing Math with JavaScript
Loops
Game Time - Loops
String Variables
Arrays
Objects
Creating a Canvas
Timer and Animations
KeyPress and Mouse Click Event
Conclusion
Book 4: Coding for Kids and Beginners in Python
Free Gift
Disclaimer
Free Gift
Introduction
Python Example, why it's good
The Input Function
Conditional Statement
Nested Conditional Statements
Loops
Arrays
Having Fun with Strings
Math Functions
Conclusion
Copyright © 2021
All Rights Reserved
written content, all readers are advised to follow the information mentioned
herein at their own risk. The author cannot be held responsible for any
The only issue is that computers do not speak English as we do, they speak
their own language. This computer language is known as machine
language.
There is a part on the computer called the interpreter, which interprets our
instructions to machine language so that the computer is able to understand
the instructions we are giving it. This interpreter is also known as a
compiler.
Your first programming language is usually the toughest to learn but after
learning it, it becomes easier to learn other languages.
Why C++
You can do a lot after learning C++. You can make games, use the Arduino
board to make cool projects or even program planes if you are allowed to
do that. The only limit you have is your imagination.
C++ has a large community support with developer forums, online tutorials,
Facebook community groups, which is very significant for beginner
programmers. It’s much easier to learn as you can ask other people in the
community if you get stuck.
C++ is also very scalable and flexible in multiple environments. This means
that it can be used by beginner programmers and advanced professionals for
different purposes. It can also be used to code games, applications, software
and apps.
Programming at its core is not really about writing code but thinking of
ways to solve problems. You get to learn and appreciate that there are
different ways to tackle a problem and sometimes one way is better than the
other. You also learn that breaking a big problem into small parts makes
your work easier.
Finally, you feel comfortable in this digital world where computers run
almost everything. To you it will not be magic as you know how to use
computers to do your tasks.
At the end of the day even if you don't become a programmer, you will be
able to know how computers can help you out in your work and gain all
these skills.
Files usually have extensions to their file names to indicate the kind of file
it is. When writing
C++ files, the files will have the extension .cpp , example main.cpp
An IDE has everything you need to write, compile and run a program in one
place.
1. A laptop/ Desktop
2. Internet Connection
3. Web browser such as Chrome, Windows Edge or Firefox
Note: please ensure that you download the file named Code Blocks
Windows 64 bit (including compiler).
After that just install the application and open it when done:
You can head over to the Code::Blocks website at the following link:
https://www.codeblocks.org/ to learn more about it. It also includes user
manual and links to download the IDE for other operating systems
Hello World in C++
The first program that all programmers write when learning a new
programming language is known as Hello World.
It is just basically writing a program that displays the words 'Hello World' to
the screen. Since we are programmers now, we say that we are printing the
words 'Hello World' to the screen.
I will be giving out code examples, and you will have to type the examples
in the Code::Blocks and click on the build and run button to compile and
execute the code in order to see the results.
In the pop-up window select Console application and click on the button
Go
Ensure you select C++ in this window
Click Next on the information window
Give the Project a title, for now it is Hello World. Select which folder it
will be saved at.
Ensure that you have GNU GCC Compiler selected as the compiler and
click on Finish.
Now on the left-hand side, under Hello World, click on the + icon next to
the Sources folder to reveal the main.cpp file. Double click on it to display
the file on the editor window on the right-hand side.
The code in the editor looks like the example below
Code
#include <iostream>
using namespace std;
int main()
{
return 0;
}
I am pretty sure that the above code looks overwhelming when you first see
it. But we are going to understand what it all means by the end of a few
chapters. For now hang in there as I try to explain the main part of this
program.
The trick with programming is to persevere as things get easier the more
you learn.
There are three buttons on top of the editor that enable us to build and run
our project.
The yellow gear button enables you to build the project, the green play
button enables you to run the build project, while the third, which is a
combination of the gear and play button, enables you to build and run the
project. Click on the combination of the two to execute the project.
A pop-up window will appear with the words 'Hello World' as shown
below.
This is what is known as the console or terminal. The console shows the
output in C++. Just close the window to get rid of it.
NOTE: make sure that you save you file before building and running it, this
can be done by pressing Control-s (Ctrl+s) after every change
First of all, notice that the line ends with a semicolon (;), this is very
important as it indicates the end of this instruction.
cout is just the programmer way of calling a screen, you can think of it as
the short form of console output.
The symbols << just mean display the things after me on the screen
'Hello World' is the text that we want to display on the screen. Notice that it
is surrounded by double quotes. The double quotes are part of the syntax
and are very important.
The next << symbol over means, add what's after me to the text 'Hello
world'. In programming we call this concatenation that is adding two
strings together
endl, means add a newline, a newline is just like pressing enter while typing
something on the computer, it takes you to a next line below the current text
As you can see when writing programs, we do not just write it in plain
English, we follow some specific rules known as the syntax of the language.
Exercise
1. Change the text so that the program prints out your name, build and run
the code.
2. Write the line of code cout << “Hello World”; two times and see what is
printed on the console. How is that different from writing cout << 'Hello
World' << endl; two times
3. Create a new project and give it any name you like and store it in a
different folder location.
a. For this new project click the run icon and notice what happens
b. For this new project click the build gear icon then the run icon
individually and note what happens.
Variables
In this chapter I will first take you through the main parts of the computer
that are important in programming.
The main part of the computer is known as the processor. This is what
actually reads your code and does what you instructed.
You can think of it as a bunch of shelves with boxes where you can store
things. In addition, these boxes are of different sizes and type. Hence you
can determine what you can store in them.
In addition, we can label these boxes so that we can refer to the name later
easily.
Variable Assignment
You can think of a variable as a box where we place our value in, and a
variable name as a label we place on the box.
There is also a thing called data type assigned to each box. A data type is a
type of information that is stored in a box. That means that the particular
variable can store only a particular type of data. Examples of data types
include strings, numbers, booleans etc.
Below is an example of a variable assignment. We write it in Code::Blocks
in a new project called variables, save the file by pressing Control-S then
build and run.
Example code
Above we have declared a variable of the name radius of data type int,
meaning integer and initialized it to the value 20.
int is what we call the data type. Using the box analogy a data type
determines the type of the box to store our value. The value which we store
is 20. The variable name is called radius, which means the label on the box
is radius.
The value of the variable can change throughout the program as long as it is
of the same data type. In the above program, we change the value to 40.
int
The data type int stands for integer. An integer is a whole number, meaning
that it cannot have a decimal to it. Examples of integers are
1,0,45,768,23343 etc.
Variable names
A C++ variable name must start with either a letter or an underscore and all
the rest of the characters must be letters, digits or an underscore.
x
x1
x_1_abc
RATE
bigBonus_
12
3x
%change data
-1 PROG.CPP
The first three, 12 3x %change, are not allowed because they do not start
with a letter or an underscore.
C++ is also case sensitive, meaning that the following are three distinct
variable names:
Rate
RATE
Rate
Camel Case
Camel case is a programming practice where multiple words are written
without spaces and the first letter of each word is capitalized (except for the
first word)
The word end of car would become: endOfCar
Camel case is a commonly used programming practice to name variables.
Keywords
Keywords are names that cannot be used as variable names as they are
reserved for programming language syntax.
If you use them as variable names the compiler will throw errors, or you
might end up changing the basic functionality of some basic function.
Examples of keywords include the basic data types, such as int, bool and
the rest, and names such as struct and class.
Comments
Sometimes we want to explain our code so that others can understand what
we did. In the future that information will help us remember what we did as
we go through the code.
Single line comments begin with two forward slashes (//) while multiline
comments sit in between the following symbols: /**/
Examples of comments:
// Test Code
/* Line 1 of Comments
Line 2 of Comments */
Declaring variables
All variables must be declared or defined before they are used.
When you declare a variable without giving it a value, we say that the
variable is uninitialized.
Uninitialized variable will have a random value in it.
You can also declare and initialize a variable at the same time.
In this example we are going to make use of comments and declare some
variables whose value we will print to the console
Create a new project in Code::Blocks, write the following code, build and
run it.
Example code
Exploring the Variety of Random
Documents with Different Content
pulled the latch-string which hung without and entered. With bated
breath he looked about him. The cheerful log fire alone beamed for
him a silent welcome. Noiselessly taking a chair he sat himself
before the coveted warmth of the lowly hearthstone, while the old
colored man and his family slept on, in blissful ignorance of the
presence of their midnight visitor.
The robber tarried only long enough to warm his chilled frame
into energy for the task of further flight, and after about one hour’s
stay he quietly donned the shoes of the black pater familias, and,
stealthily drawing an old quilt from a couch in which a brood of
pickaninnies slept, all unconscious of their loss, he wrapped it about
him, and, stepping silently out into the darkness, resumed his
journey.
A few miles further on he stole a horse from the stable of a
farmer, and, mounting its bare back, rode hard and fast till daylight,
when he turned the animal loose in the road, and betaking himself to
the protection of the forests that covered the bottom lands of the
Alabama River, left no further trace of his course. Here his trail was
lost to the detectives, who, after an arduous and vain pursuit of
several days, abandoned all further effort in that vicinity.
CHAPTER VI.
RUBE BURROW RETURNS TO LAMAR COUNTY—JOE
JACKSON JOINS HIM IN MARCH, 1888—THEIR TRIP INTO
BALDWIN COUNTY, ALABAMA.
* * * * *
Mrs. M. E. Burrow:
As I feel better this morning than I did yesterday I will write you
a few lines. Elizabeth you all rest easy about me for I think I will
best my case—my trial is set to come up the first Tuesday in
March. You have $200.00 on hand by the 15th of November to pay
my Lawyers with. One of them is a better lawyer than Frank
Summers is. So if you could employ Summers to help them in my
case it would be an advantage to me to have counsel from my
own state. Tell pa that I will answer his letter soon. Tell the children
that I will see them again. Brock’s trial was put off so he could be a
witness against me. Write all of the news.
J. B. Burrow to Mrs. Burrow.
But Jim, not being a convict and therefore not required to labor,
soon began to chafe under the restraint of prison life, which was
aggravated by a depressing attack of nostalgia, which soon developed
a fever, resulting in delirium. During his ravings, which were continuous
for about a week, he talked about his wife and children, his home in
Alabama, the stolen money he had hidden, his boyhood adventures
and his experiences in Texas, but his statements were so incoherently
mingled that it was impossible to make an intelligent narration of them.
On October 5, 1888, his earthly career was terminated by death, and
his unhonored grave is surrounded by those of such hapless fellows as
have succumbed to the rigors of prison experience, leaving their
bodies with their captors, while their spirits have slipped through the
bars and gone for final trial before the Last Tribunal.
JIM BURROW.
WILLIAM BROCK.
CHAPTER X.
THE DUCK HILL, MISS., ROBBERY—THE KILLING OF
PASSENGER CHESTER HUGHES.
ON the cold and cheerless night of December 15, 1888, the north-
bound express train of the Illinois Central Railway, which left New
Orleans for Chicago at seven o’clock A. M. pulled into the station of
Duck Hill, Miss., twenty-five miles south of Grenada, thirteen hours
later. The manner in which the engine was boarded and the train
stopped is best told in the language of Albert Law, the engineer in
charge of the locomotive. He says:
“I pulled out of Duck Hill Station at 10:05 o’clock P. M. The
fireman called to me to look out; that there was a car of cotton ahead
on the side track. I pulled slowly by, in order to avoid igniting the
cotton by sparks from the engine, and when I passed the cotton the
fireman said: ‘All right, let her go.’ I started ahead lively, and
presently saw the robbers climb up on my engine from the east side.
“The smaller man got on first. I thought they were tramps, and
was in the act of slowing up to put them off when the smaller man
covered me with a big pistol and said, ‘Don’t stop here! go on! go
on!’ I then saw that the men were masked. I asked, ‘Where do you
want to stop!’ He replied, ‘I’ll tell you where to stop.’ I pulled along,
and when we had gone about a mile he said:
“‘Stop here—stop now!’ I put the air on full and stopped as
quickly as I could.
“The little man did all the talking. When we stopped he got down
on the ground and fired his revolver two or three times. The train had
hardly stopped when he commenced shooting. The other man said,
‘Get down!’ My fireman and myself were then made to go ahead, on
the east side of the train, to the express car. Here they stopped us,
and the tall man called out to the messenger, ‘Open up! Open up!’
The messenger looked out of the door and the tall man said, ‘Where
is your other man?’ The messenger said, ‘I have no other man—no
one here but me,’ to which the reply was, ‘Help this man into the car!’
The messenger being covered by the revolver of the larger man,
extended his hand and helped him into the car.
“About this time Mr. Wilkerson, the conductor, came out of one of
the rear coaches with his lantern, and the smaller man, who stood
guarding us, told me to tell him to go back. I did, and the conductor
went back, but in a couple of minutes came out again. I saw two
forms get out of the car. They had no lights. I said, ‘You had better go
back, or they will shoot you; they are robbing the express car.’
“The fireman and I were between the robber and the rest of the
train. He kept us in front of him as a sort of breastwork. Some one in
the direction of the passenger coaches called out: ‘Law, where are
you?’ When I answered a voice said: ‘Look out! I am going to shoot!’
I stepped back from the train and the firing commenced, and I broke
and ran for the woods, which were close by.”
Meantime the robber who had entered the car handed a sack to
Southern Express Messenger Harris and bade him deliver up the
contents of his safe. At this juncture the firing on the outside of the
car had commenced, and advancing to the door, still keeping an eye
on the messenger, the robber fired three shots into the air.
Conductor Wilkerson had, on first coming out, taken in the situation,
and going back into the coaches announced to the passengers that
the train was being robbed, and asked who would assist him.
Chester Hughes, a brave young fellow, from Jackson, Tenn., arose
quickly and said, “I will, if I can get anything to shoot with.” Two
colored men seated near by had each a thirty-eight caliber
Winchester rifle, and these weapons were quickly gathered by the
conductor and his gallant passenger, and loading them with
cartridges furnished them by the owners they went forth to do battle
with the robbers. It was conductor Wilkerson who had warned the
engineer to protect himself, and he fired the first shot at the robbers.
Advancing abreast of each other these brave men fired shot
after shot at the dark form of the robber who stood as a sentinel on
the outside of the car, and who unflinchingly held his ground,
returning with steady aim charge after charge from his trusty
revolver, until finally young Hughes dropped his Winchester, and
exclaiming “I am shot!” fell to the earth. Wilkerson raised the brave
young fellow to his feet and dragged his unconscious and bleeding
form into the coach, and returning to the steps of the front coach
renewed the firing at the robbers.
The robber had, meantime, secured the money from the
messenger (about two thousand dollars), and backing out of the car,
still holding his pistol on the messenger, joined his comrade on the
ground, and under the fire of the conductor both retreated to the
woods hard by.
Chester Hughes had been in charge of a widowed sister, who,
with several small children, were en route to Jackson, Tenn. The
sister knew nothing of her brother’s participation in the fight with the
robbers until he was carried back into the coach, when she
prostrated herself in affectionate embrace over his body, from which
life was fast ebbing away. The scene was an agonizing and affecting
one.
The unerring aim of the robber had sent three shots through the
body of young Hughes, all entering the stomach within a radius of six
inches, and the unfortunate but daring young fellow lived only a few
minutes. The same train on which he had erstwhile embarked in the
vigor of health and buoyant spirits, bore his lifeless form to the home
of his widowed mother at Jackson, Tenn.
The Southern Express Company and the Illinois Central Railway
promptly presented his grief-stricken mother with a fitting testimonial
of appreciation for the heroic conduct of her son. While
THE reader may well ask what the detectives of the Southern
Express Company were doing while these men remained in Lamar
County and the adjacent country, from the time of the Duck Hill
robbery until the summer of 1889.
In the contiguous counties of Lamar, Fayette and Marion the
kindred of the Burrow family abounded on every hand. The homes of
his kinsmen, notably Cash, Terry, Barker, Smith and Hankins, not
only furnished a safe refuge for the robbers, but they were worshiped
as heroes, and each household vied with the other in its fealty and
loyalty to the robber chief. “Rube never robs a poor man,” they were
often wont to say, forgetting that one never gets blood out of a turnip.
These people were of a thriftless, restive spirit, and among them
were many shrewd and cunning natures, who became the paid
scouts of the outlaws. A code of signals was established, and the
appearance of a detective or a stranger of any kind in that section
was at once ascertained, and the information conveyed to the
outlaws. The firing of a gun in a certain locality, the cracking of a
whip, the blowing of a horn, and the deep-toned “ah-hoo,” as well as
scores of other signals, all had their meaning. They gave the
fugitives warning of the approach of danger; and so, when
occasional raids were made, a house was surrounded, a trail was
covered, or some solitary scout from among Rube’s clansmen was
encountered, the stillness of the air would be broken by a signal
which plainly told the detectives that their presence was known and
the robbers were on the alert. It was even impossible to trail the
messengers who carried rations to the robbers while in camp, for
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.
ebookmass.com