|
Assignments
-
Create two sliders in an applet representing the two operands of the typical binary operators.
The sliders take the values in the range 1 to 100. The applet should display the current values of the
two sliders and the results of adding, subtracting, multiplying, and dividing the two values. Use the
paint method of the applet to display the results. For example:
First operand: 50
Second operand: 10
Results:
Adding: 60
Subtracting: 40
Multiplying: 500
Dividing: 5
|