ive just started programing and ive been set this task of drawing
a circle which reports its area and circumference. so far what ive
come up with but i think its hideously wrong. could anyone help me
by giving a few pointers? no sarcasm please, ive only started
programming a couple weeks ago.
so far: declare private integer variables, xposition, and yposition.
declare constant pi.
define constructor method, which takes three integer arguments and
stores them in the instance variables radius, x position and y
position.
define paint method, which takes a Graphics object as argument,
draws a circle object using fillOval method and reports the radius,
area and circumference of the circle
define method calculateArea which takes no arguments and returns the
calculated area
define method calculateCircumference which takes no arguments and
returns the calculated circumference.