Course Level
CS2
Knowledge Unit
Fundamental Data Structures
Collection Item Type
Lab
Synopsis

In this lab, students dissect a working implementation of the Shut the Box dice game using process oriented guided inquiry learning (POGIL). Learning objectives include declaring and creating arrays and accessing their elements, using and explaining the parts of for loops, and working effectively as a team. This lab allows students to read an existing program rather than creating one from scratch.

Recommendations

Teams of 3-4 students work well in this lab. Students should be assigned roles such as manager, recorder, presenter, and analyst.

Prior exposure to basic control structures and variables is recommended. (I use this as a review activity for students transitioning from CS1 in C to CS2 in Java.)

Additional recommendations include: 

  • To quickly examine this activity, see the PDF posted below. This is the instruction sheet that the students will work through.
  • To quickly install and run this activity, as well as all of the other Learn Java in N Games activities, follow the instructions here:http://ljing.org/.

 

Engagement Highlights

The game-based nature of this lab is appealing and welcoming to many students. Additionally, this POGIL lab demonstrates an example of a well-structured collaborative learning experience and has significant benefits for engagement and inclusion.

Computer Science Details

Computer Science Topic(s)
arrays
loops
Programming Language
Java

Additional Details

Estimated Time to Complete

One hour

Material Format and Licensing Information

Technology Platform Required
Desktop
Creative Commons License
CC BY-NC

Author's Institutional Information

Institution Type
Baccalaureate Colleges - Liberal Arts
Community Type
City Small