Course Level
CS1
Knowledge Unit
Fundamental Programming Concepts
Collection Item Type
Lab
Synopsis
In this lab, students demonstrate their understanding of objects and basic object oriented programming by implementing a class that represents a common playing card. The class contains many methods, such as functions to return the rank and suit of the card, functions to compare the rank of cards, and a constructor that returns a random card, among others.
Recommendations
For more information on how this lab fits within the scope of the course, please see the following course schedule and syllabus here: (http://mathcs.pugetsound.edu/~aasmith/cs161/). Search "Card Object" lab.
Engagement Highlights
By putting classes in the context of a common playing card, this activity creates a Meaningful and Relevant Context.
Engagement Practices Employed
Materials and Links
Computer Science Details
Programming Language
Java
Material Format and Licensing Information
Creative Commons License
CC BY-NC-SA