Activity 01
Pair Programming: Modular Menu System
Pairs create a text-based menu program. Write procedures for displaying options and handling user choices, plus a function to validate inputs. Test the full program with sample runs and swap code for peer review.
Justify the use of subroutines to improve code readability and maintainability.
Facilitation TipDuring Pair Programming, circulate to prompt partners to alternate the driver role every four lines of code to share cognitive load.
What to look forProvide students with a short Python code snippet that uses a procedure and a function. Ask them to identify which is which, explain why, and describe what the return value (if any) represents.