Write an applet that inputs from the user the radius of a circle as a
floating-point number and displays the circle's diameter, circumference,
and area. For ∏ you may use either
the literal constant 3.14159 or the
symbolic constant Math.PI. Use the
techniques shown in Fig. 3.13 (the AdditionApplet.java
example). Use the following formulas:
diameter = 2r
circumference = 2∏r
area = ∏r2
classname: CircleApplet
Turn in the CircleApplet.java file
only.
Write an applet that inputs from the user two integers and
determines whether the first is a multiple of the second and displays the
result. [Hint: Use the modulus (aka remainder) operator.]