#include <iostream>
using namespace std;
class Circle
{
public:
Circle(double r);
double circumference() const;
double aisleArea( ) const;
private:
double radius;
const double PI;
};
Circle::Circle(double r):PI(3.14159)
{
this->radius = r;
}
double Circle::circumference() const
{
double cost;
cost = 35*PI*(radius+3.0)*2;
return cost;
}
double Circle::aisleArea() const
{
double cost;
cost = 20*PI*((radius+3)*(radius+3)-radius*radius);
return cost;
}
int main()
{
double R;
cout<<"Please enter the value of the radius:"<<endl;
cin>>R;
Circle cir(R);
double FenceCost = cir.circumference();
double ConcreteCost = cir.aisleArea();
cout << "Fencing Cost is $" << FenceCost << endl;
cout << "Concrete Cost is $" << ConcreteCost << endl;
return 0;
}