Page 1 of 1

Create a class for regular pyramid and call it Regular Pyramid. The RegularPyramid objects should be constructed by prov

Posted: Sun Jul 03, 2022 10:00 am
by answerhappygod
Create A Class For Regular Pyramid And Call It Regular Pyramid The Regularpyramid Objects Should Be Constructed By Prov 1
Create A Class For Regular Pyramid And Call It Regular Pyramid The Regularpyramid Objects Should Be Constructed By Prov 1 (16.99 KiB) Viewed 19 times
Create a class for regular pyramid and call it Regular Pyramid. The RegularPyramid objects should be constructed by providing number of sides, side length, and the height length only. Your RegularPyramid should have the following methods: Method slantHeight for calculation of slant height Method baseCircumradius for calculation of the circumradius of the base polygon Method basePerimeter for calculation of the base perimeter. Method baseArea for calculation of the base area. Method lateralArea for calculation of the lateral area. Method totalSurfaceArea for calculation of all surface areas. Method baseArea for calculation of the base area. Method volume for calculation of the regular pyramid volume.