Advanced Programming I SS3 plan

LESSON PLAN: ADVANCED PROGRAMMING I

SubjectDigital Technologies
ClassSSS 3
TermFirst Term
Week2
TopicAdvanced Programming I
Duration80 Minutes (Double Period)
SubtopicsFunctions, parameters, return values, arrays and lists, creating and manipulating arrays/lists in programs.

1. BEHAVIOURAL OBJECTIVES

By the end of the lesson, students should be able to:

  1. Explain the meaning and purpose of functions in programming.
  2. Define and call simple functions in Python.
  3. Differentiate between parameters and arguments.
  4. Explain return values and use the return statement in a function.
  5. Explain the meaning of arrays and lists.
  6. Create lists and access their elements using indexes.
  7. Manipulate lists using operations such as append(), insert() and remove().
  8. Write simple programs that use functions to process lists of data.

2. INSTRUCTIONAL / TEACHING AIDS

  • Desktop or laptop computers.
  • Python programming environment or online Python editor.
  • Projector or interactive display.
  • Whiteboard and markers.
  • Prepared code examples and programming exercises.
  • Charts illustrating function structure and list indexing.

3. PREVIOUS KNOWLEDGE / ENTRY BEHAVIOUR

Students have previously learned basic programming concepts, including variables, data types, operators, input and output statements, and control structures. They can write simple programs and perform basic calculations.

4. PRESENTATION STEPS

STEP TEACHER'S ACTIVITY STUDENTS' ACTIVITY
Step 1: Introduction Reviews variables, operators and basic program structure. Explains why larger programs need reusable code and organised data. Respond to questions and recall previously learned programming concepts.
Step 2: Functions Defines a function and demonstrates how to create and call a simple Python function using def. Observe the demonstration and write a simple function that displays a message.
Step 3: Parameters and Arguments Explains parameters and arguments. Demonstrates a function that accepts two numbers and performs addition. Identify the parameters and arguments and test the function with different values.
Step 4: Return Values Explains the return statement and distinguishes it from print(). Demonstrates a function that calculates the product of two numbers. Write and execute a function that returns the square of a number.
Step 5: Arrays and Lists Explains arrays and lists, showing how related values can be stored under one variable name. Introduces list indexing. Create a list of school subjects and identify the elements at specified indexes.
Step 6: List Manipulation Demonstrates adding, inserting, updating and removing list elements with appropriate Python statements and methods. Perform list operations on a sample list and observe the results.
Step 7: Practical Application Demonstrates a function that accepts a list of examination scores and returns their total or average. Develop and test a simple program that processes a list of scores.
Step 8: Conclusion Summarises functions, parameters, return values, arrays and lists. Corrects misconceptions and asks oral questions. Summarise key concepts, answer questions and note the assignment.

5. EVALUATION QUESTIONS

  1. What is a function in programming?
  2. State four advantages of using functions.
  3. Differentiate between a parameter and an argument.
  4. Explain the purpose of the return statement.
  5. What is a list, and how does Python indexing work?
  6. State the uses of append(), insert() and remove().
  7. Write a Python function that accepts two numbers and returns their sum.

6. ASSIGNMENT

  1. Write a Python function named calculate_area() that accepts the length and width of a rectangle and returns its area.
  2. Create a list containing six numbers. Display the first and last elements.
  3. Write a program that adds, updates and removes items from a list.
  4. Write a function that accepts five examination scores and returns their average.
  5. Explain three practical uses of functions and lists in computer applications.

7. TEACHER'S REFLECTION

To be completed after the lesson.

  • Were the lesson objectives achieved?
  • Could students create and call functions independently?
  • Could students manipulate lists and use return values correctly?
  • Which concepts require further explanation or practice?
  • What remedial or extension activities are needed?

Comments

Popular posts from this blog

Complete Computer Studies/ICT Curriculum for JSS 1 to SSS 3

90 Objective Examination Questions in Major Subjects

Number Base System