0%

Book Description

Sams Teach Yourself Beginning Programming in 24 Hours explains the basics of programming in the successful 24 Hours format. The book's examples are easily readable and understandable by even those with no previous exposure to programming.

 

This book covers the absolute basics of programming: Why program? What tools to use? How does a program tell the computer what to do? Readers will learn how to program the computer and will explore some of the most popular programming languages in use. This book will introduce the reader to common programming fundamentals using Python and will provide an overview of other common programming languages and their uses.

Table of Contents

  1. Cover Page
  2. About This E-Book
  3. Title Page
  4. Copyright Page
  5. Contents at a Glance
  6. Table of Contents
  7. About the Author
  8. Dedication
  9. Acknowledgments
  10. We Want to Hear from You
  11. Register Your Book
  12. Introduction
    1. Who Should Use This Book?
    2. What This Book Will Do for You
    3. Can This Book Really Teach Programming in 24 Hours?
    4. Conventions Used in This Book
  13. Part I: Start Programming Today
    1. Hour 1. Hands-On Programming
      1. Get Ready to Program
      2. What a Computer Program Does
      3. Common Programming Misconceptions
      4. Many Programs Already Exist
      5. Programmers Are in Demand
      6. The Real Value of Programs
      7. Users Generally Don’t Own Programs
      8. Giving Computers Programs
      9. Your First Program
      10. Clarifying Comments
      11. Entering Your Own Program
      12. Summary
      13. Q&A
      14. Workshop
    2. Hour 2. Process and Techniques
      1. Understanding the Need for Programs
      2. Programs, Programs Everywhere
      3. Programs as Directions
      4. Summary
      5. Q&A
      6. Workshop
    3. Hour 3. Designing a Program
      1. The Need for Design
      2. User–Programmer Agreement
      3. Steps to Design
      4. Summary
      5. Q&A
      6. Workshop
    4. Hour 4. Getting Input and Displaying Output
      1. Printing to the Screen with Python
      2. Storing Data
      3. Assigning Values
      4. Getting Keyboard Data with input()
      5. Summary
      6. Q&A
      7. Workshop
    5. Hour 5. Data Processing with Numbers and Words
      1. Strings Revisited
      2. Performing Math with Python
      3. How Computers Really Do Math
      4. Using Unicode Characters
      5. Overview of Functions
      6. Summary
      7. Q&A
      8. Workshop
  14. Part II: Programming Fundamentals
    1. Hour 6. Controlling Your Programs
      1. Comparing Data with if
      2. Writing the Relational Test
      3. Looping Statements
      4. Summary
      5. Q&A
      6. Workshop
    2. Hour 7. Debugging Tools
      1. The First Bug
      2. Accuracy Is Everything
      3. Write Clear Programs
      4. Additional Debugging Techniques
      5. Summary
      6. Q&A
      7. Workshop
    3. Hour 8. Structured Techniques
      1. Structured Programming
      2. Packaging Your Python Code into Functions
      3. Testing the Program
      4. Profiling Code
      5. Getting Back to Programming
      6. Summary
      7. Q&A
      8. Workshop
    4. Hour 9. Programming Algorithms
      1. Counters and Accumulators
      2. Python Lists
      3. Accumulators for Total
      4. Swapping Values
      5. Sorting
      6. Searching Lists
      7. Taking Functions Further
      8. Nested Loops
      9. Summary
      10. Q&A
      11. Workshop
  15. Part III: Java and Object-Oriented Programming
    1. Hour 10. Programming with Java
      1. Introducing Java
      2. Java Provides Executable Content
      3. Seamless Execution
      4. Multi-Platform Executable Content
      5. Java Usage Summary
      6. Start with Standalone Java
      7. Java’s Interface
      8. Security Issues
      9. Java as a Game-Development Language
      10. Java Language Specifics
      11. Get Ready to Begin
      12. Summary
      13. Q&A
      14. Workshop
    2. Hour 11. Java’s Details
      1. Defining Java Data
      2. Operators
      3. Programming Control
      4. From Details to High Level
      5. Summary
      6. Q&A
      7. Workshop
    3. Hour 12. Java Has Class
      1. Using NetBeans to Run a Java Program
      2. Going GUI
      3. Java and OOP
      4. Overview of Classes
      5. Do You Understand OOP?
      6. Methods Do the Work in Classes
      7. Summary
      8. Q&A
      9. Workshop
  16. Part IV: Web Development with HTML and JavaScript
    1. Hour 13. HTML5 and CSS3
      1. HTML Programming
      2. A Simpler Example
      3. A Quick HTML Primer
      4. Using CSS to Control How Your Text Looks
      5. Including Graphics in a Website with HTML
      6. Summary
      7. Q&A
      8. Workshop
    2. Hour 14. JavaScript
      1. Getting Started with JavaScript
      2. Using Comments in JavaScript
      3. Entering Your First JavaScript Program
      4. Printing to the Screen with JavaScript
      5. Variables in JavaScript
      6. Getting Keyboard Data with prompt
      7. Comparing Data with if
      8. Looping Statements
      9. Summary
      10. Q&A
      11. Workshop
    3. Hour 15. Having Fun with JavaScript
      1. Rotating Images on a Page
      2. Capturing the Position of the Mouse
      3. Adding a Repeating News Ticker to Your Website
      4. Summary
      5. Q&A
      6. Workshop
    4. Hour 16. JavaScript and AJAX
      1. Introducing AJAX
      2. Using XMLHttpRequest
      3. Creating a Simple AJAX Library
      4. Creating an AJAX Quiz Using the Library
      5. Summary
      6. Q&A
      7. Workshop
  17. Part V: Other Programming Languages
    1. Hour 17. SQL
      1. Relational Databases
      2. Basic SQL Queries
      3. Retrieving Records from a Database
      4. Inserting and Updating Database Records
      5. Deleting Records from a Database
      6. Adding, Deleting, or Modifying the Fields in an Existing Table
      7. Summary
      8. Q&A
      9. Workshop
    2. Hour 18. Scripting with PHP
      1. What You Need for PHP Programming
      2. Basic Structures in PHP Scripts
      3. Looping
      4. The Building Blocks of PHP: Variables, Data Types, and Operators
      5. Using and Creating Functions in PHP
      6. Working with Objects in PHP
      7. Common Uses of PHP
      8. Summary
      9. Q&A
      10. Workshop
    3. Hour 19. Programming with C and C++
      1. Introducing C
      2. What You Need for C and C++ Programming
      3. Looking at C
      4. C Data
      5. C Functions
      6. C Operators
      7. C Control Statements Mimic Python
      8. Learning C++
      9. Object Terminology
      10. Fundamental Differences Between C and C++
      11. Introducing C++ Objects
      12. Things to Come
      13. Summary
      14. Q&A
      15. Workshop
    4. Hour 20. Programming with Visual Basic 2019
      1. Reviewing the Visual Basic Screen
      2. Creating a Simple Application from Scratch
      3. Other Visual Basic Programming Considerations
      4. Your Next Step
      5. Summary
      6. Q&A
      7. Workshop
    5. Hour 21. C# and the .NET Core
      1. Understanding the Purpose of .NET
      2. The Common Language Runtime
      3. The Framework Class Library
      4. Parallel Computing Platform
      5. Dynamic Language Runtime
      6. The C# Language
      7. Summary
      8. Q&A
      9. Workshop
  18. Part VI: The Business of Programming
    1. Hour 22. How Companies Program
      1. Data Processing and Information Technology Departments
      2. Computer-Related Jobs
      3. Job Titles
      4. Structured Walkthroughs
      5. Putting a Program into Production
      6. Consulting
      7. Summary
      8. Q&A
      9. Workshop
    2. Hour 23. Distributing Applications
      1. Issues Surrounding Software Distribution
      2. Using Version Control
      3. Summary
      4. Q&A
      5. Workshop
    3. Hour 24. The Future of Programming
      1. Some Helpful Tools
      2. Will Programming Go Away?
      3. Your Ongoing Training Needs
      4. Summary
      5. Q&A
      6. Workshop
  19. Appendix A. Installing Python
    1. Downloading Python from the Python Software Foundation
    2. Installing Anaconda
    3. Other Python Environments
  20. Index
  21. Appendix B. Using the NetBeans Integrated Development Environment
    1. Installing NetBeans
    2. Creating a New Project
    3. Creating a New Java Class
    4. Running the Application
    5. Fixing Errors
  22. Appendix C. Glossary
  23. Code Snippets
18.116.85.72