Java Reference
In-Depth Information
December 3, 2007
December 5, 2007
FIGURE 9-54
J ava 2
v 5 . 0
J ava 2
1. Analyze the requirements document carefully. Think about the requester, the
users, the problem, and the purpose of the class.
2. Design the solution. Draw a class diagram for the program. Pay careful
attention to the methods needed. Write either pseudocode or draw a flow-
chart to represent the logic in your methods, as appropriate.
3. Validate the design. Have a classmate or your instructor look over your class
diagram and logic, making suggestions before you proceed.
4. Implement the design. Translate the design into code for the program. For
Java 5.0, use typesafe ArrayLists and autoboxing/unboxing.
5. Test the solution. Create a test program to test the Tally class, finding and
correcting errors (debugging) until it is error-free.
6. Print a copy of the source code, and then submit all documents to your
instructor.
v 5 . 0
 
Search WWH ::




Custom Search