Course Level
CS1
Knowledge Unit
Fundamental Programming Concepts
Collection Item Type
Lab
Synopsis

In this lab, students demonstrate their understanding of for loops and mathematical computation by printing out all pairs of people in a list of people. The program first asks for a list of names, and then prints out all possible pairs of distinct names among the ones provided.

Recommendations

For more information on how this homework fits within the scope of the course, please see the following course schedule and syllabus here: (http://mathcs.pugetsound.edu/~aasmith/cs161/). Search "Partners".

Engagement Highlights

By putting the use of for loops and nested for loops in the context of names and pairings of people, this activity creates a Meaningful and Relevant Context.

Engagement Practices Employed

Materials and Links

Materials

Computer Science Details

Programming Language
Java

Material Format and Licensing Information

Creative Commons License
CC BY-NC-SA