Activity Card - Refactor Programs Using Functions
Refactor Programs Using Functions
Objective: Students will refactor existing programs by breaking them into functions.
Instructions:
- Provide a program written as a single block of code.
- Students refactor the program into modular functions.
- Test the refactored program for correctness.
Materials:
- Program examples
- Refactoring guidelines
Assessment:
- Completeness of refactoring
- Correctness of the refactored program