Consider two identical pails. One pail hangs from a hook on the ceiling and contains a liquid. The other pail is empty and rests on the floor directly below the first pail. Suddenly a small hole develops in the bottom of the full pail. Liquid streams from the full pail and falls into the empty pail on the floor, as the following figure illustrates:
Liquid continues to fall until the upper pail is empty.
Design classes for a program that illustrates this action. When the program begins execution, it should display both pails in their original condition before the leak occurs. Decide whether the leak will occur spontaneously or at a user signal, such as pressing the Return key or clicking the mouse. If the latter, you could have the user position the cursor on the pail bottom to indicate where the leak will occur.
Write CRC cards and Java interfaces that include comments in javadoc style.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.