Day 5 - Program Inputs and Outputs

Day 5: Program Inputs and Outputs

Learning Objectives

Essential Questions

Materials Needed

Vocabulary

Procedure (50 minutes)

Opening (8 minutes)

  1. Review and Connection (3 minutes)

    • Review program purpose and function from previous lesson
    • Connect to today's focus on inputs and outputs
  2. Warm-up Activity (5 minutes)

    • Students list inputs and outputs for familiar programs/apps
    • Share and discuss examples as a class

Main Activities (32 minutes)

  1. Lecture: Types of Program Inputs and Outputs (10 minutes)

    • Define and categorize program inputs:
      • User inputs (keyboard, mouse, touch, voice)
      • File inputs
      • Network/API inputs
      • Sensor inputs
    • Define and categorize program outputs:
      • Visual outputs (text, graphics)
      • Audio outputs
      • File outputs
      • Network outputs
      • Control signals to other systems
  2. Demo: Event-Driven Programming Examples (7 minutes)

    • Demonstrate how events trigger program responses
    • Show examples of event handlers in code
    • Explain the relationship between user actions, events, and program behavior
    • Demonstrate how the same input can produce different outputs depending on program state
  3. Lab: Identify Inputs and Outputs (10 minutes)

    • Students work individually or in pairs
    • Analyze several sample programs
    • For each program, identify and document:
      • All possible inputs
      • All possible outputs
      • The relationship between specific inputs and outputs
      • Events that trigger program behavior
  4. Mini-Project Introduction: Program Design (5 minutes)

    • Introduce mini-project assignment
    • Students will design (not code) a simple program
    • Design must specify:
      • Program purpose
      • Required inputs
      • Expected outputs
      • How inputs are transformed into outputs

Closing (10 minutes)

  1. Mini-Project Work Time (7 minutes)

    • Students begin working on their program designs
    • Teacher circulates to provide guidance
  2. Preview Week 2 (3 minutes)

    • Explain that next week will focus on program design and development processes
    • Mini-projects will continue to be developed throughout the unit

Assessment

Differentiation

For Advanced Students

For Struggling Students

Homework/Extension

Teacher Notes