PROGRAMMING:Calculating the area of various figures with virtual function
This paper defines the abstract base class shape, from which five derived classes are derived: circle (circle), square (square), rectangle (rectangle), trapezoid (trapezoid) and triangle (triangle). It is required to use the base class pointer array, and each array element points to the object of a derived class. Pi = 3.14159f, single precision floating point calculation.
###Input format:
Input in a row, give 9 numbers greater than 0, separated by spaces, representing the radius of the circle, the side length of the square, the width and height of the rectangle, the top, bottom and height of the trapezoid, and the bottom and height of the triangle.
###Output format:
Output the area sum of all graphics, and keep 3 significant digits after the decimal point.
###Input example:
```in
12.6 3.5 4.5 8.4 2.0 4.5 3.2 4.5 8.4
```
###Output example:
```out
five hundred and seventy-eight point one zero nine
```
answer:If there is no answer, please comment
###Input format:
Input in a row, give 9 numbers greater than 0, separated by spaces, representing the radius of the circle, the side length of the square, the width and height of the rectangle, the top, bottom and height of the trapezoid, and the bottom and height of the triangle.
###Output format:
Output the area sum of all graphics, and keep 3 significant digits after the decimal point.
###Input example:
```in
12.6 3.5 4.5 8.4 2.0 4.5 3.2 4.5 8.4
```
###Output example:
```out
five hundred and seventy-eight point one zero nine
```
answer:If there is no answer, please comment