/**
* AI: Francisco Lara-Dammer
* Lab 5
* Complete the code in the class Circle so that this program can run.
*/
public class Lab4{
public static void main(String[] args){
Circle c1 = new Circle();
Circle c2 = new Circle(1,1,3);
c1.printCircle();//Should print (0,0,1)
c2.printCircle();//Should print (1,1,3)
System.out.println("The area of your circle is " + c1.area());//Should print 3.14...
c1.expand(2);
c1.printCircle();//Should print (0,0,2)
System.out.println("There are " + getNumberOfCircles() + " thus far");
//Should print .
}
}
class Circle{
double x;
double y;
double radius;
final static double pi = Math.PI;
//Constructs the circle with center in the origen and radious 1.
Circle(){
}
//Constructs a circle with center (u, v) and radius r.
Circle(double u, double v, double r){
}
//Returns the Center (You may need to use the class Point).
Point getCenter(){
}
//Return the radius
double getRadius(){
}
//Calculate the area of the circle. (pi*radius^2)
double area(){
}
//The radius of this circle will be e times the original radius
void expand(double e){
}
//Prints x, y and r as (x,y,r).
void printCircle(){
}
//Define here your method getNumberOfCircles
}