Activity 01
Pair Programming: Inventory Manager
Pairs create a list to store shop items and prices. They code functions to add new items, remove sold ones, and display totals using loops. Pairs test with classmate inputs and swap code to debug indexing errors.
Analyze how the choice of data structure impacts algorithm efficiency.
Facilitation TipDuring Pair Programming: Inventory Manager, circulate and listen for students debating whether to insert or append based on whether the item is new or restocked.
What to look forPresent students with a short code snippet that uses a list to store student names. Ask them to identify the index of a specific student and write the code to add a new student to the end of the list.