C Is for Children: My First Thirty-Two Keywords
()
About this ebook
Computer programming is a good exercise for the mind, and its an essential skill that can serve anyone well into adulthood. In C Is for Children, author and engineer D. Michael Parrish introduces children to the C programming language.
Parrish presents lessons that focus on the C keywords. C Is for Children discusses all thirty-two keywords of the C89 standard andprovides over twenty example programs, along with guidewordsand a thorough glossary. Designed for third-, fourth-, and fifth-gradestudents, this textbook is an easy-to-follow, step-by-step learning toolfor kids interested in writing their own programs.
Praise for C Is for Children
D. Michael Parrish is the Dr. Seuss of the digital age.George Matsoukas, author
In a world of slavish conformity, this book is a refreshing, innovative, and entertaining contribution to childrens literature.
Alex Bellas, EdD
D. Michael Parrish
D. Michael Parrish is a professional engineer. He has published dozens of academic articles and technical reports in the fields of water resources, hydrology, and coastal engineering.
Related to C Is for Children
Related ebooks
CodeCraft C: Mastering C Basics: C language, #1 Rating: 0 out of 5 stars0 ratingsC Programming Language, A Step By Step Beginner's Guide To Learn C Programming In 7 Days. Rating: 4 out of 5 stars4/5C Programming: C Programming Language for beginners, teaching you how to learn to code in C fast! Rating: 0 out of 5 stars0 ratingsC Programming: Core Concepts and Techniques Rating: 0 out of 5 stars0 ratingsC Programming Language Rating: 0 out of 5 stars0 ratingsC Programming Pocket Primer: An Essential Guide to C Programming Basics Rating: 0 out of 5 stars0 ratingsC Programming For Beginners: The Simple Guide to Learning C Programming Language Fast! Rating: 5 out of 5 stars5/5Beginning Programming with C For Dummies Rating: 0 out of 5 stars0 ratingsMastering C: A Comprehensive Guide to Proficiency in The C Programming Language Rating: 0 out of 5 stars0 ratingsC Programming For Dummies Rating: 0 out of 5 stars0 ratingsC in 30 Pages Rating: 5 out of 5 stars5/5Computer Programming In C Language Rating: 4 out of 5 stars4/5An Introduction to C & GUI Programming Rating: 0 out of 5 stars0 ratingsC Programming Language The Beginner’s Guide Rating: 0 out of 5 stars0 ratingsC All-in-One Desk Reference For Dummies Rating: 5 out of 5 stars5/5C Programming Language Rating: 4 out of 5 stars4/5C Programming Rating: 0 out of 5 stars0 ratingsA Day in Code: An illustrated story written in the C programming language Rating: 0 out of 5 stars0 ratingsC Programming Concepts Rating: 0 out of 5 stars0 ratings"C Programming for Beginners: A Step-by-Step Guide" Rating: 0 out of 5 stars0 ratingsBasic Information About C language PDF Rating: 0 out of 5 stars0 ratingsCoding In C Decoded: Decoded, #1 Rating: 0 out of 5 stars0 ratingsLearning C Doesn't Make You a Dinosaur: A Beginner's Guide to C Rating: 0 out of 5 stars0 ratingsDive Into Sea of C Rating: 0 out of 5 stars0 ratingsLearn C Programming in 24 Hours Rating: 0 out of 5 stars0 ratingsC++ Programming Language: Simple, Short, and Straightforward Way of Learning C++ Programming Rating: 4 out of 5 stars4/5Mastering C++ Swiftly Rating: 0 out of 5 stars0 ratingsC Programming Language Essentials Rating: 4 out of 5 stars4/5C++ For Dummies Rating: 3 out of 5 stars3/5
Programming For You
JavaScript All-in-One For Dummies Rating: 5 out of 5 stars5/5Python: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5SQL All-in-One For Dummies Rating: 3 out of 5 stars3/5Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5Microsoft Azure For Dummies Rating: 0 out of 5 stars0 ratingsSQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Python Data Structures and Algorithms Rating: 5 out of 5 stars5/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Learn Python in 10 Minutes Rating: 4 out of 5 stars4/5Linux: Learn in 24 Hours Rating: 5 out of 5 stars5/5PYTHON PROGRAMMING Rating: 4 out of 5 stars4/5Excel 101: A Beginner's & Intermediate's Guide for Mastering the Quintessence of Microsoft Excel (2010-2019 & 365) in no time! Rating: 0 out of 5 stars0 ratingsAlgorithms For Dummies Rating: 4 out of 5 stars4/5Learn SQL in 24 Hours Rating: 5 out of 5 stars5/5Godot from Zero to Proficiency (Foundations): Godot from Zero to Proficiency, #1 Rating: 5 out of 5 stars5/5Beginning Programming with C++ For Dummies Rating: 4 out of 5 stars4/5PYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5
Reviews for C Is for Children
0 ratings0 reviews
Book preview
C Is for Children - D. Michael Parrish
Copyright © 2014 D. Michael Parrish
All rights reserved. No part of this book may be used or reproduced by any means, graphic, electronic, or mechanical, including photocopying, recording, taping or by any information storage retrieval system without the written permission of the publisher except in the case of brief quotations embodied in critical articles and reviews.
iUniverse books may be ordered through booksellers or by contacting:
iUniverse LLC
1663 Liberty Drive
Bloomington, IN 47403
www.iuniverse.com
1-800-Authors (1-800-288-4677)
Because of the dynamic nature of the Internet, any web addresses or links contained in this book may have changed since publication and may no longer be valid. The views expressed in this work are solely those of the author and do not necessarily reflect the views of the publisher, and the publisher hereby disclaims any responsibility for them.
ISBN: 978-1-4917-1359-4 (sc)
ISBN: 978-1-4917-1360-0 (e)
Library of Congress Control Number: 2013921272
iUniverse rev. date: 01/17/2014
The epigraph is taken from the Holy Bible (Textus Receptus and King James Version).
Cover art background image copyright Moya Phototography, Inc. Used with permission.
CONTENTS
Note To Parents And Guardians
Acknowledgements
Introduction
Part 0: Much Ado About Nothing
Chapter 0: Nothing
Chapter 1: Anything, Anywhere, And Nowhere
Chapter 2: Something
Chapter 3: Statement
Chapter 4: Return Of Nothing, Definition Of Nothing
Part 1: Your First Program
Chapter 0: The main Idea
Chapter 1: Comment
Part 2: The Three R’s
Chapter 0: Show Me
Chapter 1: Yes, We Scan
Part 3: Branching Out
Chapter 0: 49612.png If You Like To Waltz With Potatoes 49614.png
Chapter 1: If You’d Rather Not Waltz With Potatoes
Chapter 2: After while, Crocodile
Chapter 3: See You Later, Alligator
Chapter 4: Just in case
Chapter 5: Where Did You Go? Out. What Did You Do? Nothing.
Chapter 6: for
Chapter 7 : To Be continue’d
Part 4: Assorted Objects
Chapter 0: Halflings
Chapter 1: To 2¹⁶ . . . And Beyond!
Chapter 2: Building Structures
Chapter 3: Return Of The Fry Guy
Chapter 4: Def Type
Part 5: Inside, Outside, Upside Down
Chapter 0: extern (Outside)
Chapter 1: static Klingons Inside!
Part 6: Auto Bots, Move Out!
Part 7: sizeof
Part 8: Fast, Faster, register
Part 9: Volatile
Conclusion
About The Author
Appendi: Installing and Using MinGW
Glossary
Glossary Of Keywords
Resources
References
LIST OF TABLES
Table 0: The Integral Types
LIST OF FIGURES
Figure 0: Nothing
Figure 1: Hands Pointin
Figure 2: What’s in a Name
Figure 3: The Four Scopes
LIST OF PROGRAMS
Diddly Squat
Hello Nurse
Scanner
Small Potatoes
More Potatoes
Curly Fries
Fry Menu
Case of Fries
Skip The Fries
Count
Chart
Chart Two
Halflings
Pokemon
Return of the Fry Guy
Def Pokemon
Scopes Trial
Daddies
Pappas
Shoot
Ones
Supersize Me
Counter
for Denwood, Lottie, and Edward
Εν αρχή ην ο λόγος
In the beginning was the Word
NOTE TO PARENTS AND GUARDIANS
I’ve picked up a few programming languages over the years: I use them in my work as an engineer as well as in my play time. Last summer my wife asked me to teach our kids how to program computers. I did not find a children’s book on C, so I thought I would write one and publish it so that you and your children could benefit from the effort I’ve already put in.
Why should kids learn to program computers? Computer programming is exercise for the mind. Computer programming is a valuable, if not essential skill for many professions. If you live in the United States, it can be more important than fluency in a human language other than English. I have used the French I learned in high school very little, and don’t know Spanish, even though I have lived in Florida and northern Virginia for decades, where Spanish is fairly common. Much of the work I do as an engineer could not be done, or could not be done very quickly, without some programming. Just as with human languages, it is never too early to begin learning computer languages. I began at about age seven, just as Commodore was getting low-cost personal computers into our living rooms.
I think C is a good first computer language. Many other computer languages are based on C, and many languages not based on C include concepts inherent to C. Also, the C89 standard has only 32 keywords—convenient for a brief introductory text such as the one you are reading now.
Although this is a book for children (grade 3 or so), I hope that you will assist your child with the new words that are printed in emphasized text, and which are all defined herein. I hope you will also assist your child reader with the exercises by doing some typing and / or copying and pasting from the website, tiny.cc/cisforchildren.
This book begins introducing C with nothing (almost literally). If your child reads English at about the 3rd grade level, he or she should be able to read this book, and should expect to see about three new words per page. It will help if the child reader has a sense of numbers and an arithmetic ability normally acquired by about grade 3 (e.g., counting rules, addition, subtraction, awareness of negative numbers and fractions). The computer will do the math, but it will help to have an idea of what is going on.
Neither you nor your child need to know how to type in order to learn C. Hunt-and-peck works just fine. My high-school computer programming teacher did not know how to type—and neither did I at the time—but what I learned in that class earned me college credit through an Advanced Placement Computer Science exam. As a beginning programmer, you do a lot more work with your brain than with your fingers.
I hope you will have a C compiler installed on your computer so that you can try the example programs along with any of your own. If you are new to C, you might start with gcc or