Activity 01
Pair Programming: Simple Calculator
Pairs code a program that prompts for two numbers and an operation, then outputs the result. They test with various inputs, including errors, and add input validation. Pairs swap programs to evaluate clarity of prompts and outputs.
Construct a program that interacts with the user through input and output.
Facilitation TipDuring Pair Programming: Simple Calculator, circulate and ask each pair to explain their input prompt design before coding begins.
What to look forProvide students with a simple scenario, like ordering a pizza. Ask them to write down: 1. Two specific pieces of information the program would need to input from the user. 2. One way the program could output a confirmation message.