1544268106
1544268106
Analytics 2 Bundle
Manuscript
Essential Beginners
Guide on Enriching
Your C++ Programming
Skills and Learn
Practical Data
Analytics, Data Science,
and Predictive Analytics
for Beginners
By Isaac D. Cody
QUICK TABLE OF
CONTENTS
A Beginners Guide
in Coding
Programming And
Dominating C++.
Novice to Expert
Guide To Learn and
Master C++ Fast
Conclusion
History of C++
Bjarne Strousup was working on his
thesis for his doctorate, and he decided
to work with a programming language
that was known as Simula. This language
one one of the first programming
languages of the computer age. However
it was very slow and full of bugs.
Job Outlook
Three Important
Components of C++
int main ()
{
court << “Use This One!”;
return 0;
}
C++ Compilers
There are many different compilers out
there, and a lot of them are pretty
expensive. Those compilers are for the
elite programmers who have mastered
the lower level compilers already.
Beginners only need a basic compiler,
and most of those are free. However,
just like with anything that is free, you
have to be careful of what you are
getting. There are more bad cheap
compliers than good ones out there so on
the pretense of being free, I would
suggest you paying additional functions
past the start up page. These additional
functions are usually very cheap
anyways so you won’t have to break the
bank to get them.
One of the most popular compilers
available is the GNU C/C++ compiler. It
is used most commonly in UNIX and
Linux installations. To see if you already
have the compiler, pull up the command
line in your UNIX/Linux application and
type in the following
$ g++ -v
Basic Syntax
#include <iostream>
using namespace std;
int main()
{
cout << “Try This”; // [Prints Try
This]
return 0;
}
$ g++ hello.cpp
$ ./a.out
Try This
x=y;
y=y+1;
add(x,y);
Each one of those statements were
separated by not only a line break, but
also a semicolon. You could also do it
this way.
Identifiers
asm
Break Bool Auto
Char Catch Case
Const cast Const Class
Delete Default Continue
Dynamic Double Do
cast
Explicit Enum Else
False Extern Export
Friend For Float
Inline If Goto
Mutable Long Int
Protected Private Namespace
Reinterpret Register Public
cast
Signed Short Return
Static cast Static Sizeof
Template Switch Struct
True Throw This
Typeid Typedef Try
Unsigned Unlon Typename
Void Virtual Using
While Wchar t Volatile
Trigraphs
??= #
??/ \
??' ^
??( [
??) ]
??! |
??< {
??> }
??- ~
Not all compilers support trigraphs due
to their confusing nature, and most
people try to stay away from them,
however, it has been found that when
you memorize trigraphs, you are less
likely to mess up by hitting the wrong
symbol in your function.
Whitespace
QUIZ
You thought that you could just waltz
through this book without being tested on
if you were paying attention? No
cheating either! Just because you can
peek at the answers does not mean that
you should. You should take it just like a
normal quiz to truly test your knowledge
so you can figure out if you need to go
back and re-read over some things. This
is a short quiz, so you will be okay.
1. What is whitespace?
2. Fill in the blanks ___
<<x=y+1_>>
3. What are trigraphs?
4. Who Invented the C with Classes
language?
5. What is the header used in most
functions?
Answers
{
cout << “that's great” >>; //prints
that's great
return 0
}
Try This
today I ate pizza and I did math
6=(7-1)
that is what I learned today
{
cout << Try This;>> endl;
<<Today I ate Pizza and did
Math;>> endl;
<<6=(7-1);>> endl;
<< That is what I learned today;>>
endl;
return 0
}
{
cout << Try This;>> endl; <<
Today I ate Pizza and did Math;>> endl;
<<6=(7-1);>> endl; << That is what I
learned today;>> endl;
return 0
}
Variable definitions
A variable definitions instructs the
compiler how much and where to store
and create the variable. It specifies the
data type and lists one or more of the
variables of the type. For example
type variable_list;
int. main ()
int j=10;
int k=5;
int l=j+k
{
cout <<l>> endl;
return 0
}
QUIZ
#using <header>
using namespace std;
int main ()
int _=_
int _=_
int _=_+_
{
cout < “”;> /n
< “”;> /n
cout < “int_”;> /n
return 0
}
Arrays
Arrays are a data structure in C++ that
will be able to store elements that are
basically the same type and also a fixed
size. Basically a collection of same type
variables. Instead of using the individual
variables, you would declare one array
of variables such as numbers. To do this
you use the numbers 0 to 99 and access
each one by an index of the array.
#include <iomanip>
using std::setw;
int main ()
{
int n[ 10 ]; //n is an array of ten
integers
// initialize elements of array n to
0
for ( int i=0; I <10; i++)
{
n[i] =i+100; // set ekement at
location I to i+ 100
}
cout << element << setw(13) <<
value<< endl:
//output each array element's value
for (int j=0; j<10; j++)
{
cout << setw(7)<< j << setw(13)
<<n[j] << endl;
}
return 0
}
This program was able to use the setw()
function in order to format the output that
you see.
Loop Types
While loop
while (condition)
{
statement(s);
}
For Loop
This loop executes a statement sequence
over and over again while abbreviating
the code that manages the loop
variables.
do
{
statement(s);
}while (condition);
Nested loops
• Logical operators
• Arithmetic operators
• Assignment operators
• Relational operators
Logical operators
The first type of operator that we are
going to use in this guidebook are the
logical operators. These are going to
help you to compare some of the parts
that you are putting into the system.
Some of the logical operators that you
can work with include:
Arithmetic operators
Another of the operators that you are
able to use is the arithmetic operators.
These are pretty much the same as using
math in school. You are going to tell the
program to add, subtract, and do other
equations with the information that you
are providing. Some of the arithmetic
operators that you are able to use
include:
Assignment operators
The assignment operators will make it
easier for you to assign a name to your
variable and can help with searching for,
saving, and so on with the different parts
of the code that you are writing. Some of
the assignment operators that you may
use inside of C++ include:
Relational Operators
Switch Statements
Switch(expression){
case constant-expression:
statement(s);
break; //optional
case constant-expression:
statement(s);
break; //optional
Default: //Optional
statement(s);
}
When you are working inside of these
statements, there are a few rules that you
should keep in mind. First, the
expression of the switch statement
should be the integral or enumerated
class type. In addition, it can also belong
to a class that has a conversion function.
With C++, there isn’t going to be a limit
to the amount of case statements that you
add into the syntax so you can make them
as long or short as you would like. Just
remember that you need to have a colon
and a value in each of them.
The if statements
One of the most basic things that you are
able to do in your programs is create an
if statement. These are going to be based
on a true and false idea inside the
system. If the system says that the input
is true with the condition that you set out,
then the program is going to run
whatever you ask it to. For example, you
set it up to have the system as what the
answer to 2 + 2 is. If the user puts in the
answer as 4, you could have a message
come up that says “That is Correct!
Good Job!”
if(boolean_expresion)
{
//statement(s) will execute if the
boolean expression is true
}
Else
{
// statement(s) will execute if the
boolean expression is false
}
Boolean Literals
Character Literals
String Literals
hello, Mother"
"hello, \
Mother"
"hello, " "M" "other"
Learning how to use some of these
different parts inside of the C++
programming language will make a big
difference in how well you are able to
use this computer language. Have some
fun and experiment with using them a bit
and you will find that it is easier than
ever to get the results that you want!
Conclusion
Hacking
History of Hacking
Hacking began officially in the 1970s
when teenagers were banned from using
the phone lines because they were trying
to make free calls, and figured out how
to do so. Phone hacking was the biggest
thing, and continued for over a hundred
years. Making calls used to be
expensive, especially when the phone
lines were new, so of course people
were trying to find ways to save money,
and usually it caught up with them. Such
was the case for a man named John
Draper. He was arrested for figuring out
how to make long distance calls simply
by blowing a note into the receiver that
prompted it to make a long distance call
without an operator. You could then
input the number and talk as long as you
wish. Genius, but illegal.
Types of Hacking
By Isaac D. Cody
Table of Contents
Introduction
Chapter 1: What Are Data
Analytics and Why Every
Business Should Have It
Conclusion
Preview of this book
Data analytics
Data Analytics
Data analytics is a simple idea at the
core of it all. It is looking at raw data to
draw a conclusion about the information.
That means, you’ll have a set of data
here, and it’s used to help show the
company what’s really going on in order
to make better decisions and it allows
you to see if an existing business model
or theory is working. Data analytics is
done to look and analyze what is going
on. We’ll go over the anatomy of how
you get there with this later on, but in
essence, it is basically the use of
software and trends to identify patterns
and to look for hidden relationships.
For example, let’s say that you’re
looking at the amount of items you’ve
sold within the year. Let’s say it was
going great at first, but around June or
July, things start to fizzle out. At first,
you might freak out, but upon further
analysis, you might realize that you put
in a new program, or maybe hired on a
new person to the business. Maybe Joe
Schmo might be causing you more harm
than good, and when you look at his
production, you’ll start to see who is at
fault here in order to handle it
accordingly.
- Descriptive: Descriptive
analytics was described earlier in
the chapter. Essentially, this is the
type of data analytics that is said
to be based upon what’s happening
now with the data that is coming
in. Typically, to look for this type
of analytics, you will use a
dashboard that displays all of this
data. Location of averages, ranges,
standard deviation are some of the
basic descriptive statistics and
analytics that are covered in this
topic.
- Prescriptive: Prescriptive
analytics will tell you when it’s
time to take action. Now, this is
the most important one of them all,
because this is the data analytics
that will tell you what needs to be
done next, and it’s sort of what
will determine the next step of the
company. This is the type of data
analytics that either lets the
company go under, or will let the
company spring forward as a
result.
Big Data
The first thing to go over is big data. Big
data, as sad before, is data that doesn’t
have a small amount. It spans over a ton
of various areas, and that’s what data
analytics does with it. With big data,
you’re looking at a much bigger picture
than you expect it to be.
Data mining
Data warehouse
Data Visualization
Social Media
Social media is another major part of
building a business these days, not just
because of the fact that everything is all
out there, but also because of the
analytics that go along with this. Social
media is used these days in order to
perform data analytics, and there are a
few reasons why.