Advanced Programming I SS3 plan
LESSON PLAN: ADVANCED PROGRAMMING I
| Subject | Digital Technologies |
| Class | SSS 3 |
| Term | First Term |
| Week | 2 |
| Topic | Advanced Programming I |
| Duration | 80 Minutes (Double Period) |
| Subtopics | Functions, 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:
- Explain the meaning and purpose of functions in programming.
- Define and call simple functions in Python.
- Differentiate between parameters and arguments.
- Explain return values and use the
returnstatement in a function. - Explain the meaning of arrays and lists.
- Create lists and access their elements using indexes.
- Manipulate lists using operations such as
append(),insert()andremove(). - 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
- What is a function in programming?
- State four advantages of using functions.
- Differentiate between a parameter and an argument.
- Explain the purpose of the
returnstatement. - What is a list, and how does Python indexing work?
- State the uses of
append(),insert()andremove(). - Write a Python function that accepts two numbers and returns their sum.
6. ASSIGNMENT
- Write a Python function named
calculate_area()that accepts the length and width of a rectangle and returns its area. - Create a list containing six numbers. Display the first and last elements.
- Write a program that adds, updates and removes items from a list.
- Write a function that accepts five examination scores and returns their average.
- 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
Post a Comment