-->
当前位置:首页 > 题库

PROGRAMMING:2017final swimming pool aisle cost

Luz5年前 (2021-05-10)题库495
There is a round swimming pool. Now we need to build a passage around it and put a rectangular fence around it, as shown in the picture. If the cost of aisle is 20 yuan / m2. It is required to calculate and output the cost of the aisle. Please define a circle class with private data member radius representing radius and several member functions; Define a rectangle class with private data members, length and width representing length and width, and several member functions( Suppose pi = 3.14159, all data are double type)
![](~/ 404)
###Input format:
Enter a row of data a, B, C, representing the radius of the swimming pool and the length and width of the fence. Among them, a > 0, b > 2 \ * a, C > 2 \ * a.
###Output format:
For the input data of each line, the cost of the aisle is output.
###Input example:
```in
3 7 8
```
###Output example:
```out
five hundred and fifty-four point five one four
```






answer:If there is no answer, please comment