Activity 01
Pair Programming: Weather Advisor
Pairs brainstorm scenarios where weather data triggers advice, like suggesting outfits or activities. They sketch if/else logic with logical operators, code the program in a simple language, and test with varied inputs. Partners switch roles to refine and present one feature.
Analyze how different conditions alter the execution path of a program.
Facilitation TipDuring Pair Programming: Weather Advisor, circulate and listen for students to verbalize their decision logic before coding so they clarify their thinking first.
What to look forPresent students with a short code snippet containing an if/else statement and a specific input value. Ask them to write down what the program will output. For example: 'If age > 18, print "Adult". Else, print "Minor". If age is 15, what is printed?'