next up previous
Next: Problem Design: Year Up: In the Laboratory: The Previous: Problem Description

Problem Decomposition

One way to decompose this problem is to divide it into two classes, the LeapYearApplet class, which implements the user interface, and the Year class, which contains the expertise needed to decide whether a given value is a leap year or not. LeapYearApplet should get the input from the user (in a TextField), pass it to Year, converting it to whatever form Year requires, and then display the result that Year returns.



Ralph Morelli {Faculty}
12/22/1999