control unit

This is the picture of the task that
i have to accomplish and it's called
control unit. The control unit as
shown in the picture consists of two
buttons, central part of control unit,
two lamps and sensor including water
capacity. My task is to create an applet
using Java language so that when we press
the 1st button, the water will start filling
the sensor with water and when we press
the 2nd button, the running of water will
be stopped. At the time when the water
is not out of level the 1st lamp will
remain lightning until the water goes
out of the level so that the 2nd lamp
will shine to alert us that it's
time to press the 2nd button for stopping
the roaring of the running water.



Rambler's Top100