CSC 222: Object-Oriented Programming
Spring 2015

HW 1: Classes and Objects

For this assignment, you will work with and extend a class that keeps score for a basketball team. The HoopsScorer class has methods for adding points to a team's score and accessing that score.

In-class exercises - may be completed with a partner

Homework assignment - must be completed individually

You will now extend your HoopsScorer class so that it also records missed shots and is able to report the shooting percentages for a team. In order to accomplish this, you will need make several changes and additions to the existing class.

Once you have tested methods, download the StatBoard GUI class that makes use of the extended functionality of HoopsScorer to display shooting percentages as well as scores.