Lesson Plan

Lesson Plan
Grade: Date: 18/01/2026
Subject: Computer Science
Lesson Topic: Understand and use input and output
Learning Objective/s:
  • Explain the purpose of input and output in a program.
  • Identify common input and output devices and methods.
  • Write simple programs that use input and output statements in Python and Java.
  • Trace programs that contain I/O operations.
  • Apply basic validation to user‑entered data.
Materials Needed:
  • Projector and screen
  • Laptops/computers with Python and Java IDEs installed
  • Printed handout of pseudocode and code examples
  • Worksheet with practice I/O questions
  • Whiteboard and markers
Introduction:

Begin by asking students how they give commands to computers and receive results in everyday life. Link this to prior knowledge of variables and program flow. Explain that by the end of the lesson they will be able to write, trace and validate simple I/O code in two languages.

Lesson Structure:
  1. Do‑now (5') – short quiz on definitions of input, output and common devices.
  2. Mini‑lecture (10') – clarify I/O concepts, show a table of devices, introduce pseudocode READ/WRITE.
  3. Python demo (15') – walk through rectangle‑area program, highlight input() and print().
  4. Guided practice (15') – students modify the demo to add numeric conversion and simple validation.
  5. Java I/O demo (10') – introduce Scanner and System.out.println with the same rectangle example.
  6. Pair activity (15') – trace given pseudocode and complete missing I/O statements on a worksheet.
  7. Plenary (5') – recap key points, exit ticket: “Write one line of code that reads a number and one line that displays it.”
Conclusion:

Summarise that effective I/O requires correct syntax, proper data conversion and validation. Collect exit tickets and clarify any lingering questions. For homework, ask students to write a program that asks for three numbers and prints the largest.