Title:
Triangle-and-cylinder-class-package Download
- Category:
- JavaScript
- Tags:
-
[Text]
- File Size:
- 1kb
- Update:
- 2012-12-10
- Downloads:
- 0 Times
- Uploaded by:
- 李泽华
Description: (1) create a Triangle kind of Triangle, including attribute has three side of the long sideA, sideB, sideC, including methods of structure method (two, a no parameters, a given three side length), quadrature method area (), and circumference method getLength ()
Tip: a triangle three side length for a, b, c, it is the area of, including S = (a+ b+ c)/2, square root method for Math. SQRT ().
(2) create a cylinder class YZT, including properties have bottom radius radius and the height of cylinder heigth, including methods of structure method (two, a no parameters, a given radius radius and the height of cylinder heigth), set up base radius setRadius (), get bottom radius getRadius (), set high setHeigth, get high getHeigth, cubage calTJ (), and surface area calBMJ ()
(3) using the above two classes were defined object, and three sides respectively,20,37.5 25 and 3.0, 4.0, 5.0 of the triangle area and perimeter, respectively for bottom radius is 12.5, height is 11 cylinder and unders
To Search:
File list (Check if you may need any files):
Triangle and cylinder class package.txt