有一圆形游泳池,现在需在其周围建一圆形过道,并在其四周围上栅栏。栅栏价格为35元/米,过道造价为20元/平方米。过道宽度为3米,游泳池半径由键键盘输入。#includeiostreamusingnamespacestd;constfloatPI=(float)3.14159;//给出p的值constfloatFencePrice=35.;//栅栏的单价constfloatConcretePrice=20.;//过道水泥单价classCircle//声明类Circle及其数据和方法{public://外部接口Circle(floatr);//构造函数floatCircumference();//计算圆周长floatArea();//计算圆面积private://私有数据成员floatradius;};//类的实现Circle::Circle(floatr){radius=r;}//构造函数初始化数据成员radiusfloatCircle::Circumference()//计算圆的周长{return2*PI*radius;}floatCircle::Area()//计算圆的面积{returnPI*radius*radius;}//主函数实现intmain(){floatradius;floatFenceCost,ConcreteCost;coutEentertheradiusofthepool:;//提示用户输入半径cinradius;CirclePool(radius);//声明Circle对象CirclePoolRim(radius+3);FenceCost=PoolRim.Circumference()*FencePrice;coutFencingCostis$FenceCostendl;ConcreteCost=(PoolRim.Area()-Pool.Area())*ConcretePrice;coutConcreteCostis$ConcreteCostendl;}个人算法分析如下:上述程序主要运用了