To mom and dad, who made me into the (overly) curious & passionate man who I am today, seeking to give back the world the products of their patience, love, and lessons tenfold, in hopes of making it a better place every day, in my own way, little by little.


Computer programs are, essentially, a bunch of instructions you give a computer so that it executes them for you.
You give computers said instructions through something called code, which is a computer's language (Similar to how English is yours)!



With specific sets of code, computers can do all sorts of awesome things, from helping you with homework to playing your favorite videogames.



One of the most important parts of computer programs are variables. A variable is simply something that can vary, or change. Think of them as boxes: You can store something inside, take it out, add more things, etc. Whatever it is that you do, you're changing the box's contents every time!




Although there are quite a few data types, the simplest and most common ones are called integers, doubles, booleans, and strings.
What we store in the variables of computer programs is called data, which is just a fancy word for information.



A double stores decimal numbers, such as 0.5, 1.25, etc.
An integer stores whole numbers, such as 1, 2, 10, and 25.





A string is a sequence of characters. They are ideal to store words & sentences!
A Boolean can store two values: True OR false. think of them as a switch; it can be set to ON (true) or OFF (false)!





In order to get there, data must first get through pieces of code called functions. They're like little machines which take in our data, process it, and return a result.
Using these basic data types, among many more, computer programs are able to output, or produce, all sorts of different things, from audio clips to entire 3D models!




Sometimes, we don't want some functions to be executed depending on what our data looks like.
For example, imagine that we're playing a videogame in which our character can jump only if they're standing on the ground.
We would need to check if our character is touching the ground, to then decide if they can jump. We can do this using something called a conditional!

- Full access to our public library
- Save favorite books
- Interact with authors
To mom and dad, who made me into the (overly) curious & passionate man who I am today, seeking to give back the world the products of their patience, love, and lessons tenfold, in hopes of making it a better place every day, in my own way, little by little.


Computer programs are, essentially, a bunch of instructions you give a computer so that it executes them for you.
You give computers said instructions through something called code, which is a computer's language (Similar to how English is yours)!



With specific sets of code, computers can do all sorts of awesome things, from helping you with homework to playing your favorite videogames.



One of the most important parts of computer programs are variables. A variable is simply something that can vary, or change. Think of them as boxes: You can store something inside, take it out, add more things, etc. Whatever it is that you do, you're changing the box's contents every time!


- < BEGINNING
- END >
-
DOWNLOAD
-
LIKE(2)
-
COMMENT()
-
SHARE
-
SAVE
-
BUY THIS BOOK
(from $2.99+) -
BUY THIS BOOK
(from $2.99+) - DOWNLOAD
- LIKE (2)
- COMMENT ()
- SHARE
- SAVE
- Report
-
BUY
-
LIKE(2)
-
COMMENT()
-
SHARE
- Excessive Violence
- Harassment
- Offensive Pictures
- Spelling & Grammar Errors
- Unfinished
- Other Problem
COMMENTS
Click 'X' to report any negative comments. Thanks!