next up previous
Next: Problem Design: The PrimesApplet Up: In the Laboratory: Finding Previous: GUI Specifications

Problem Decomposition

There are two tasks involved in the demo program. One is to provide a user interface, a GUI. The other is to provide the expertise needed to determine whether a number is prime. This suggests that we should break this problem up into two objects: a PrimesApplet object, which will manage the interface, and a Primes object, which will contain methods to determine whether a number is prime and to find prime numbers within a certain range.



Ralph Morelli {Faculty}
12/22/1999