Question: Help needed with program ConicalFrustum.java Program must run and the output structure should look identical to the output structure in blue. A Conical Frustum is
A Conical Frustum is a Frustum created by slicing the top off a cone (with the cut made parallel to the base), forming a lower base and an upper base that are circular and parallel. r radius of top r radius of bottom h height s slant height S lateral surface area V(r12 r22(r r2)) s = * (n + r) * s A total surface area Source for figures and formulas: https://www.calculatorsoup.com/images/frustum001.gif . ConicalFrustum.java Requirements: Create a ConicalFrustum class that stores the label, radius of top, radius of bottom, and height where the radii and height are non-negative. The ConicalFrustum class also includes methods to set and get each of these fields, as well as methods to calculate the volume, slant height, lateral surface area, and total surface area of a ConicalFrustum object, and a method to provide a String value that describes a ConicalFrustum object. Design: The ConicalFrustum class has fields, a constructor, and methods as outlined below (1) Fields (instance variables): label of type String, radiusl of type double, radius2 of type double, and height of type double. Initialize the String to "and the double variables to 0 in their respective declarations. These instance variables should be private so that they are not directly accessible from outside of the ConicalFrustum class, and these
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
