been doing good in the class until now..can someone lend me a hand and help me out here..i had to finally break down and just ask someone.
here is what im facing...
1. Define and implement a class named Circle. Its partial declaration is given below:
Point C; //center of circle, an object of Point class
Circle(); //radius = 0, center = (0, 0)
Circle(float r); //radius = r, center = (0, 0)
Circle(Point P, float r); // radius = r, center = P
(Implement >> and << here as free functions. Operation << should plot(draw) the circle.)
//scale – multiply a float number into the radius
(Implement * here as a member function.)
//move – move circle to another location
(Implement moveTo(Point) and moveBy(Point) functions here as member functions.)
//compare – decide if two circle are overlapping or not. When two are overlapping, decide further if one is completely contained in the other.
(Implement ==, !=, < operators here as free functions, where C1==C2 is true if C1 and C2 overlap, C1!=C2 is true if they don’t, and C1<C2 is true if C1 is contained in C2.)
Your main function must display the following menu repeatedly:
1. Read a circle
2. Plot a circle
3. Scale a circle
4. Move a circle
5. Compare two circles //read 2 circles and compare them.
help would be very much appreciated. thanks a lot guys!!!