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
Yes We Can Do It Rating: 0 out of 5 stars0 ratingsExploring C++20: The Programmer's Introduction to C++ Rating: 0 out of 5 stars0 ratingsSelf Publishing Hacks: Practical Suggestions for Practical Authors: Practical Suggestions for Practical Authors Rating: 0 out of 5 stars0 ratingsSelf-Publishing: Easy as ABC Rating: 0 out of 5 stars0 ratingsHTML For Novices By Novices Rating: 0 out of 5 stars0 ratingsC# Programming from Zero to Proficiency (Introduction): C# from Zero to Proficiency, #0 Rating: 0 out of 5 stars0 ratingsThe Hidden Costs of Self-Publishing a Best Seller - Facts You should Know Rating: 0 out of 5 stars0 ratingsCreateSpace Quick & Easy Self-Publishing Manual Rating: 0 out of 5 stars0 ratingsCollege Hacks Rating: 4 out of 5 stars4/5The Humble Essay: A Readable Introduction to College Writing Rating: 0 out of 5 stars0 ratingsAchieving Your Potential: A Guide for Software Engineers Rating: 0 out of 5 stars0 ratingsLearn to Code With JavaScript Rating: 0 out of 5 stars0 ratingsProgramming Problems: A Primer for The Technical Interview Rating: 4 out of 5 stars4/5You Can't Dance to These Rhythms: What Are Algorithms? Rating: 0 out of 5 stars0 ratingsDo It Yourself Editing, a Guide for the eBook Author Rating: 0 out of 5 stars0 ratingsHow to Become a Data Analyst: My Low-Cost, No Code Roadmap for Breaking into Tech Rating: 0 out of 5 stars0 ratingsHow to Write and Sell Computer Books Rating: 5 out of 5 stars5/5500 Writing Prompts for Kids: First Grade through Fifth Grade Rating: 5 out of 5 stars5/5Every Computer User Needs A Tutor Rating: 0 out of 5 stars0 ratingsJust Write The Darn Thing Rating: 2 out of 5 stars2/5Make Your Own Book Cover and Some Book Making Tips Rating: 0 out of 5 stars0 ratingsWrite and Publish an eBook in 8 Hours or Less Rating: 5 out of 5 stars5/5Yes You Can: Create Your Own E-book Rating: 0 out of 5 stars0 ratingsHow to Improve Your Website – Make Your Website or Blog an Asset for Your Business: Books That Make You Smarter Rating: 0 out of 5 stars0 ratingsWriting Ebooks for Fun & Profit Rating: 0 out of 5 stars0 ratingsThe Two-Week Short Story Rating: 0 out of 5 stars0 ratingsHire a Ghost Writer Hand Book Rating: 0 out of 5 stars0 ratingsHire A Ghost Writer HandBook Rating: 0 out of 5 stars0 ratings
Programming For You
HTML & CSS: Learn the Fundaments in 7 Days Rating: 4 out of 5 stars4/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5SQL All-in-One For Dummies Rating: 3 out of 5 stars3/5Python: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5Learn PowerShell in a Month of Lunches, Fourth Edition: Covers Windows, Linux, and macOS 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/5Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5SQL: For Beginners: Your Guide To Easily Learn SQL Programming in 7 Days Rating: 5 out of 5 stars5/5Hacking: Ultimate Beginner's Guide for Computer Hacking in 2018 and Beyond: Hacking in 2018, #1 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/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Python QuickStart Guide: The Simplified Beginner's Guide to Python Programming Using Hands-On Projects and Real-World Applications Rating: 0 out of 5 stars0 ratingsPython Projects for Beginners: A Ten-Week Bootcamp Approach to Python Programming Rating: 0 out of 5 stars0 ratingsModern C++ for Absolute Beginners: A Friendly Introduction to C++ Programming Language and C++11 to C++20 Standards Rating: 0 out of 5 stars0 ratingsProgramming Arduino: Getting Started with Sketches Rating: 4 out of 5 stars4/5Problem Solving in C and Python: Programming Exercises and Solutions, Part 1 Rating: 5 out of 5 stars5/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