Activity Card - Refactor Programs Using Functions

Refactor Programs Using Functions

Objective: Students will refactor existing programs by breaking them into functions.

Instructions:

  1. Provide a program written as a single block of code.
  2. Students refactor the program into modular functions.
  3. Test the refactored program for correctness.

Materials:

Assessment: