#define PI 3.14
class Circle
{
public:
double radius;
Circle();
Circle(double);
double calculateArea(double);
double calculateCircum(double);
void display();
};
Circle::Circle()
{
radius = 0;
}
Circle::Circle(double r)
{
radius = r;
}
double Circle::calculateArea(double r)
{
return (PI*r*r);
}
double Circle::calculateCircum(double r)
{
return (2*PI*r);
}
void Circle::display()
{
cout << "Radius of the Circle is " << Circle::radius << endl;
cout << "Area of the Circle is " << calculateArea(Circle::radius) << endl;
cout << "Circumference of the Circle is " << calculateCircum(Circle::radius) << endl
<< endl;
}
main()
{
Circle circle1;
Circle circle2(3.5);
circle1.display();
circle2.display();
system("pause");
}
On Mon, Jun 13, 2011 at 9:58 PM, mc090405383 Abdul Rehman <mc090405383@vu.edu.pk> wrote:
BHAI JAAN LAST DATE HAI PLEASE SOLUTION OF ASSIGNMENT 3 OF CS201 SEND KAR DO
On 6/9/11, bc100403247 Syed Nawaid Hassan <bc100403247@vu.edu.pk> wrote:
> Please help me i need an idea to solve cs201 current assignment please help
> me becasue today is the last date of submission. Assignment file attached.
>
> --
> --
> Please visit www.vuzs.net For Current & Old Papers, Quizzes, Assignments and
> study material.
> --
> You received this message because you are subscribed to the Google
> Groups "vuZs" group.
> --
> To post a new message on this group, send email to vuZs@googlegroups.com
> --
> Message Posting Rules:
> http://groups.google.com/group/vuZs/web/vuzs-basic-rules-for-posting-messages
> --
> To unsubscribe from this group, send email to
> vuZs+unsubscribe@googlegroups.com
> --
> To join this group Send blank email from your virtual university email
> address to
> vuZs+subscribe@googlegroups.com
> or visit
> http://groups.google.com/group/vuZs/subscribe
> ---
> For more information Contact vuZs Manager at info@vuzs.net
>
--
--
Please visit www.vuzs.net For Current & Old Papers, Quizzes, Assignments and study material.
--
You received this message because you are subscribed to the Google
Groups "vuZs" group.
--
To post a new message on this group, send email to vuZs@googlegroups.com
--
Message Posting Rules: http://vuzs.net/faq/4795-vuzs-google-groups-basic-rules-for-posting-messages.html
--
To unsubscribe from this group, send email to vuZs+unsubscribe@googlegroups.com
--
To join this group Send blank email from your virtual university email address to
vuZs+subscribe@googlegroups.com
or visit
http://groups.google.com/group/vuZs/subscribe
---
For more information Contact vuZs Manager at info@vuzs.net
--
--
Please visit www.vuzs.net For Current & Old Papers, Quizzes, Assignments and study material.
--
You received this message because you are subscribed to the Google
Groups "vuZs" group.
--
To post a new message on this group, send email to vuZs@googlegroups.com
--
Message Posting Rules: http://vuzs.net/faq/4795-vuzs-google-groups-basic-rules-for-posting-messages.html
--
To unsubscribe from this group, send email to vuZs+unsubscribe@googlegroups.com
--
To join this group Send blank email from your virtual university email address to
vuZs+subscribe@googlegroups.com
or visit
http://groups.google.com/group/vuZs/subscribe
---
For more information Contact vuZs Manager at info@vuzs.net
No comments:
Post a Comment