Program Logic

Learning Unit 2

Programming Basics

Programming Basics

Learning Objectives

Upon completion of this unit, you should be able to:

Learning Activities

In this unit you learn about rules and standards, as well as, keywords, variables, data types,named constants, testing and debugging. You will also learn about the three basic types of errors. Each link below takes you to a specific chapter within this unit. Please take the time to review all the chapters and when available, complete the interactive activities.

"Go confidently in the direction of your dreams. Live the life you have imagined." - Henry David Thoreau
  1. Naming Standards, Rules, and Keywords
    • Naming Standards
    • Naming Rules
    • Keywords
    • What You Learned
    • Test Your Knowledge - Interactive activity
  2. Variables and Data Types
    • What does data look like?
    • Naming Variables
    • Data Types
    • Variables and Data Types
    • Declaring and Initializing Variables
    • Additional Resources
    • What You Learned
    • Test Your Knowledge - Interactive activity
  3. Named Constants
    • The Keyword final
    • Declaring a Named Constant
    • Once Assigned
    • When to use a Named Constant
    • What You Learned
  4. The Assignment Operator
    • Order Matters!
    • Compatible Data Types
    • Understanding Error Messages
    • What You Learned
  5. Errors, Testing, and Debugging
    • Compile-time Errors
    • Runtime Errors
    • Logic Errors
    • Testing for Failure
    • Testing for Success
    • Debugging
    • What You Learned
  6. The Anatomy of a Program
    • The Package
    • The class
    • Controller Class
    • Main Class
    • Methods
    • Scope and Code Blocks
    • The Semicolon
    • Did you Know?
    • What You Learned