COMP 1600 Project 3: Developing and Using a Counter Class
(30 points)

Due: end of lab period, Tuesday April 1, 2014

You are to develop and use a Counter class based on its published specification. This is a variation of MyProgrammingLab exercise 20727, section 5.2. You will write the class itself, test it using the provided test driver, and implement a graphical application that uses it.

Details
  1. In the I:\COMP\1600\20142-COMP-1600-01\Common folder, you will find a folder called Project3. Copy this into your workspace. If you cannot access the I: drive, then download the project zip file (right-click) and unzip. The Project3 folder contains CounterTest.java and CounterApp.java.
  2. CounterTest is a client class that will test the Counter class methods and report the results of those tests. Use it to test and debug the Counter class.
  3. CounterApp is a client class that will provides a functional counter application. It is partially implemented and you will complete the implementation.
  4. You will write the Counter class from scratch using the provided specifications. You need to decide what instance variables will be needed to implement these methods, and add them to the class definition. As noted above, this is a variation of MyProgrammingLab exercise 20727 (section 5.2).
  5. Compile and run CounterTest.java to test your implementation of Counter. It will run a battery of tests and report success or failure of each. For failures it will give both the expected and actual result.
  6. Once it passes all tests successfully, start working on the app CounterApp.java. When completed and run, it should look something like this
  7. For a bonus, add Javadoc-style comments to Counter.java to produce the same API as the one provided with this project. You can preview the results using the icon in jGRASP.
  8. When finished, copy Counter.java and CounterApp.java into your I:\COMP\1600\20142-COMP-1600-01\DropBox folder.

Total possible points: 30

PointsItemDescription
16 counter Correct implementation of all constructors and methods of the Counter class.
10 GUI Correctly functioning CounterApp that also visually resembles the provided image.
4 documentation Use of comments, self-documenting identifier names, and judicious use of white space (such as indentation) to enhance readability of Counter.java. Be sure to include your name!
4 Bonus Use of Javadoc-style comments in Counter.java that will result in an API specification closely resembling the Counter spec provided with this assignment. I'll provide some basic information about Javadoc separately.


[ COMP 1600 | Peter Sanderson | Math Sciences home page | Otterbein ]

Last updated:
Peter Sanderson (PSanderson@otterbein.edu)