Kids Can Program Too!


Outline

Sample sections can be viewed by clicking on any headline which is a link
(It is recommended to maximize the browser window when viewing the samples)

PART ONE - Who's Who In Hardware and Software
Preface
Who Needs Another Book On Programming?
It's Not Only What You Learn, It's Also How You Learn!
You'll Get There, Step By Step
This Is What The Symbols Mean
Text
Examples
Where Do Hardware And Software Live?
Adventures In The Park - A Look Into The Hardware
CPU - The Real Brain
Memory - The Brain's Immediate Storage
Disks - For Long-Term And Large Quantities
Peripheral Devices - Monitors, Keyboards, Mice, Printers, Scanners, Modems, And More
User Interface
Communications
Input
Output
Listen To The Man Behind The Curtain - The Software Makes It All Happen
The `Essence' Of Programming
Stored Programs
Machine And Assembly Languages
High-Level Languages
Assemblers, Compilers And Interpreters
Assemblers
Compilers
Interpreters
Virtual Machines
The Operating System
Going In And Out - Input/Output Services
Getting Organized - Files And Folders
Timing Is Everything - Scheduling
Glossary
PART TWO - Programming Boot Camp
Preface
Who Needs Another Book On Programming?
It's Not Only What You Learn, It's Also How You Learn!
You'll Get There, Step By Step
This Is What The Symbols Mean
Text
Examples
The Elements Of Programming
Putting A Program Together
Your Very First Program!
Anything To Declare? - Setting Up The Parts And Tools
Making A Statement - Writing Down The Directions
Comments
Tokens And White Spaces
More Simple Programs
A Plain Calculator
An Interactive Calculator
It Takes All Kinds - Types, Values And Variables
Types And Values
Literals, Variables And Constants
Literals
Variables
Constants
All Together Now: Literals, Variables And Constants
Arrays
One-Dimensional Arrays
Multi-Dimensional Arrays
Arraying It All For Review
Strings
References
Smooth Operators - Manipulating Values And Variables
Commence Operations - Introductions To Operators
Operands And Values
Unary And Binary Operators
Numerical Operators
Basic Arithmetic Operators
The Remainder Operator
The Increment And Decrement Operators
Let's Operate Numerically Together
Relational Operators
Logical Operators
Bit And Shift Operators
The Concatenation Operator
The Conditional Operator
When Things Go Wrong - Truncation And Overflow
Express Yourself - Using Expressions
Expression Evaluation
Not All Operators Are Equal - Precedence And Parentheses
Truncation And Overflow Strike Again
Your Evaluation, Please
Assignments
Compound Assignments
Chained And Embedded Assignments
And Your Assignment Is
Mixed-Type Expressions - Promotions, Conversions And Casts
Promotions And Conversions
Casts
Mixed Results
Let's Put All This To Some Simple Uses
Volume And Surface Area
Pyramid-In-A-Prism
Stuffed Cone
Age Validation
It's A Matter Of Control - Using Control Statements
What If - Conditional Execution
While You Can - Repetitive Execution
For Now And Again - Loop Control
Take A Break
Continue, Please
Make The Switch - Selective Execution
Some More Serious Programs
Sort
Median And Average Values
Multiplication Table
A Better Calculator
Stay Organized - Using Statements And Blocks
Playing With Blocks - Grouping Statements
On The Scope - Visibility Of Variables
It's How You Function - Using Functions Or Methods
The Structure Of A Function
The Simple Truth About Simple Functions
Throwing A Pass - Passing Arguments
Functions With No Value
Where Functions Can Be Found
An Example Function (Sort of...)
Overloading A Function
Can We Talk? - Input And Output
When You Have Something To Say - Output
Decimal Notation
Scientific Notation
Formatting Using Patterns
Output To Files
Listen To Others - Input
Finally, Real Programs
The Grades Report
Let's Play Checkers
The Nitty-Gritty Details
How To Install The Software You Need
Text Editor
The Java Environment
How To Type, Compile And Run A Program
Typing And Editing Source Code
Compiling A Program
Running A Program
How To Tackle Errors
Syntax Errors
Logic Errors
Debugging
Glossary
PART THREE - Object Oriented Programming
Preface
Who Needs Another Book On Programming?
It's Not Only What You Learn, It's Also How You Learn!
You'll Get There, Step By Step
This Is What The Symbols Mean
Text
Examples
Object Fundementals
Every Object Is, Well, An Object
What's In An Object
Some Big Words - Encapsulation, Polymorphism, Inheritance
In A Class Of Its Own - The Making Of An Object Class
Taking Attendance - Class Members
For Instance - Class Instantiation
The Right To Privacy - Public And Private Members
There Must Be A Method To This Madness - Class Methods
Constructors
Attributes Access
Other Methods
Classic Classes - A Few Built-In Classes
Strings
Numbers
Files And Streams
Head Of The Class - Some Sample Classes
The Box
The Train
Objectively Speaking - Your First Object-Oriented Programs
Example 1
Example 2
The Nitty-Gritty Details
How To Install The Software You Need
Text Editor
The Java Environment
How To Type, Compile And Run A Program
Typing And Editing Source Code
Compiling A Program
Running A Program
How To Tackle Errors
Syntax Errors
Logic Errors
Debugging
Glossary

Home   Overview   Outline   About the Author   Members   Download   Contact Us