Activity 01
Pair Design Challenge: Student Record Builder
Pairs define a record for a student with name, age, and subjects array. They write code to create instances, update a field, and print details. Pairs then swap and extend the partner's record with a nested address record.
Analyze how records can represent real-world entities with diverse attributes.
Facilitation TipDuring Pair Design Challenge, circulate to ensure pairs discuss data types for each field before coding, preventing rushed or mismatched choices.
What to look forPresent students with a scenario, e.g., 'Design a record to store information about a book, including title, author, publication year, and a list of genres.' Ask them to write down the record definition in pseudocode or their chosen programming language, specifying data types for each field.